Add a basic systemd service template
This commit is contained in:
parent
305998cf65
commit
3a248c6a19
1 changed files with 11 additions and 0 deletions
11
modules/rhizo_base/templates/systemd-basic.service.erb
Normal file
11
modules/rhizo_base/templates/systemd-basic.service.erb
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=<%= @svc_name %>
|
||||
Wants=basic.target
|
||||
After=basic.target network.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/etc
|
||||
ExecStart=<%= @svc_command %>
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue