ScoDoc-Lille/config/configure_systemd.sh

18 lines
427 B
Bash
Raw Normal View History

2020-12-05 17:29:26 +01:00
#!/bin/bash
2020-12-06 15:28:49 +01:00
# Modify ScoDoc install to use systemd
2020-12-05 17:29:26 +01:00
# E. Viennet, 2020-12-04
source config.sh
source utils.sh
2020-12-19 19:22:22 +01:00
check_uid_root "$0"
2020-12-05 17:29:26 +01:00
echo 'Installation du demarrage automatique de ScoDoc (systemd)'
2020-12-19 19:22:22 +01:00
cp "$SCODOC_DIR"/config/etc/scodoc.service /etc/systemd/system
2020-12-05 17:29:26 +01:00
systemctl enable scodoc.service
echo "A partir de maintenant, utiliser"
echo " pour demarrer: systemctl start scodoc"
echo " pour arreter : systemctl stop scodoc"