example systemd service file added

This commit is contained in:
Martin Brodbeck 2023-10-04 09:06:35 +02:00
parent eb8f154907
commit 88560b241b

17
systemd/m32chat.service Normal file
View 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