mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
Update systemd.service
This commit is contained in:
parent
8fc022e0cb
commit
00a6d0f6da
1 changed files with 7 additions and 3 deletions
|
@ -1,19 +1,23 @@
|
|||
[Unit]
|
||||
Description=Movim: web-based XMPP client
|
||||
After=nginx.service network.target local-fs.target postgresql.service
|
||||
Description=Movim: responsive web-based XMPP client
|
||||
After=nginx.service network.target local-fs.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=__APP__
|
||||
Group=__APP__
|
||||
Environment=PUBLIC_URL=https://__DOMAIN____PATH__/
|
||||
Environment=WS_PORT=__PORT__
|
||||
EnvironmentFile__INSTALL_DIR__/
|
||||
WorkingDirectory=__INSTALL_DIR__/
|
||||
ExecStart=/usr/bin/php__PHPVERSION__ daemon.php start
|
||||
StandardOutput=syslog
|
||||
SyslogIdentifier=__APP__
|
||||
PIDFile=/run/movim.pid
|
||||
#Restart=on-failure
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
|
||||
|
||||
# Sandboxing options to harden security
|
||||
# Depending on specificities of your service/app, you may need to tweak these
|
||||
# .. but this should be a good baseline
|
||||
|
|
Loading…
Add table
Reference in a new issue