-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
104aecf
commit a9591fc
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |