ScoDoc-PE/config/configure_systemd.sh

18 lines
423 B
Bash
Raw Permalink 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
check_uid_root $0
echo 'Installation du demarrage automatique de ScoDoc (systemd)'
cp $SCODOC_DIR/config/etc/scodoc.service /etc/systemd/system
systemctl enable scodoc.service
echo "A partir de maintenant, utiliser"
echo " pour demarrer: systemctl start scodoc"
echo " pour arreter : systemctl stop scodoc"