Added systemd unit file to distribution.
This commit is contained in:
parent
07a2fde2af
commit
ca2c4c65ab
1 changed files with 19 additions and 0 deletions
19
server/src/dist/etc/linux-systemd/ensichat.service
vendored
Normal file
19
server/src/dist/etc/linux-systemd/ensichat.service
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
[Unit]
|
||||
Description=Ensichat Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=ensichat
|
||||
Group=ensichat
|
||||
ExecStart=/usr/bin/ensichat --name "" --status ""
|
||||
WorkingDirectory=/var/lib/ensichat
|
||||
RootDirectory=/var/lib/ensichat
|
||||
|
||||
Restart=always
|
||||
PrivateTmp=true
|
||||
ProtectSystem=full
|
||||
ProtectHome=true
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in a new issue