2018-01-16 01:28:03 -05:00
|
|
|
[Unit]
|
|
|
|
Description=Movim Daemon
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2019-03-03 20:21:14 -05:00
|
|
|
User=movim
|
2018-01-16 01:28:03 -05:00
|
|
|
WorkingDirectory=/usr/share/webapps/movim
|
|
|
|
EnvironmentFile=/etc/default/movim
|
2018-06-19 12:10:51 -04:00
|
|
|
ExecStartPre=/usr/bin/php vendor/bin/phinx migrate
|
2018-01-16 01:28:03 -05:00
|
|
|
ExecStart=/usr/bin/php daemon.php start --url=${MOVIM_URL} --port=${MOVIM_PORT} --interface=${MOVIM_INTERFACE}
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|