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]
|
[Unit]
|
||||||
Description=Movim: web-based XMPP client
|
Description=Movim: responsive web-based XMPP client
|
||||||
After=nginx.service network.target local-fs.target postgresql.service
|
After=nginx.service network.target local-fs.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
|
Environment=PUBLIC_URL=https://__DOMAIN____PATH__/
|
||||||
|
Environment=WS_PORT=__PORT__
|
||||||
|
EnvironmentFile__INSTALL_DIR__/
|
||||||
WorkingDirectory=__INSTALL_DIR__/
|
WorkingDirectory=__INSTALL_DIR__/
|
||||||
ExecStart=/usr/bin/php__PHPVERSION__ daemon.php start
|
ExecStart=/usr/bin/php__PHPVERSION__ daemon.php start
|
||||||
StandardOutput=syslog
|
StandardOutput=syslog
|
||||||
SyslogIdentifier=__APP__
|
SyslogIdentifier=__APP__
|
||||||
PIDFile=/run/movim.pid
|
PIDFile=/run/movim.pid
|
||||||
#Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
|
||||||
|
|
||||||
# Sandboxing options to harden security
|
# Sandboxing options to harden security
|
||||||
# Depending on specificities of your service/app, you may need to tweak these
|
# Depending on specificities of your service/app, you may need to tweak these
|
||||||
# .. but this should be a good baseline
|
# .. but this should be a good baseline
|
||||||
|
|
Loading…
Add table
Reference in a new issue