ScoDoc/config/configure_systemd.sh

18 lines
423 B
Bash
Raw Normal View History

2020-12-05 17:29:26 +01:00
#!/bin/bash
# Modify ScoDoc install tu use systemd
# 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"