Restart radicale if needed
This commit is contained in:
parent
72f959bb29
commit
a246ed05c1
|
@ -411,6 +411,8 @@ function install_radicale {
|
||||||
echo 'User=www-data' >> /etc/systemd/system/radicale.service
|
echo 'User=www-data' >> /etc/systemd/system/radicale.service
|
||||||
echo 'Group=www-data' >> /etc/systemd/system/radicale.service
|
echo 'Group=www-data' >> /etc/systemd/system/radicale.service
|
||||||
echo "ExecStart=/usr/local/bin/radicale --config ${RADICALE_DIRECTORY}/config" >> /etc/systemd/system/radicale.service
|
echo "ExecStart=/usr/local/bin/radicale --config ${RADICALE_DIRECTORY}/config" >> /etc/systemd/system/radicale.service
|
||||||
|
echo 'Restart=on-failure' >> /etc/systemd/system/radicale.service
|
||||||
|
echo 'RestartSec=10' >> /etc/systemd/system/radicale.service
|
||||||
echo '' >> /etc/systemd/system/radicale.service
|
echo '' >> /etc/systemd/system/radicale.service
|
||||||
echo '[Install]' >> /etc/systemd/system/radicale.service
|
echo '[Install]' >> /etc/systemd/system/radicale.service
|
||||||
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/radicale.service
|
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/radicale.service
|
||||||
|
|
Loading…
Reference in New Issue