Skip to content

Commit

Permalink
Add systemd service example
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWayfer committed Dec 1, 2020
1 parent 104aecf commit a9591fc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions template/config/systemd.example.service.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[Unit]
Description=<%= @module_name %> Server
After=network.target

# Uncomment for socket activation (see below)
# Requires=puma.socket

[Service]
# Foreground process (do not use --daemon in ExecStart or config.rb)
Type=simple

# The path to the your application code root directory.
WorkingDirectory=%h/<%= @app_name %>

# Helpful for debugging socket activation, etc.
# Environment=PUMA_DEBUG=1

ExecStart=%h/<%= @app_name %>/exe/systemd.sh

Restart=always

[Install]
WantedBy=multi-user.target

0 comments on commit a9591fc

Please sign in to comment.