example systemd service file added
This commit is contained in:
parent
eb8f154907
commit
88560b241b
1 changed files with 17 additions and 0 deletions
17
systemd/m32chat.service
Normal file
17
systemd/m32chat.service
Normal file
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=Morserino Chat Server
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
After=redis.service
|
||||
|
||||
[Service]
|
||||
RestartSec=2s
|
||||
Type=simple
|
||||
User=myuser
|
||||
Group=users
|
||||
WorkingDirectory=/home/myuser
|
||||
ExecStart=/usr/local/bin/m32chat
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue