Rename arkdaemon.service to arkmanager.service

This commit is contained in:
Ben Peddell 2015-06-25 20:45:52 +10:00 committed by FezVrasta
parent ae5de315e9
commit 180c51569e

View File

@ -14,9 +14,9 @@ if [ ! -z "$1" ]; then
mkdir -p "/usr/libexec/arkmanager"
cp lsb/arkdaemon "/usr/libexec/arkmanager/arkmanager.init"
chmod +x "/usr/libexec/arkmanager/arkmanager.init"
cp systemd/arkdeamon.service /etc/systemd/system/arkdaemon.service
cp systemd/arkdeamon.service /etc/systemd/system/arkmanager.service
systemctl daemon-reload
systemctl enable arkdaemon.service
systemctl enable arkmanager.service
echo "Ark server will now start on boot, if you want to remove this feature run the following line"
echo "systemctl disable arkmanager.service"
else # systemd not present, so use sysvinit
@ -49,8 +49,8 @@ if [ ! -z "$1" ]; then
echo "rc-update del arkmanager default"
fi
elif [[ /etc/systemd/system.conf ]]; then # used by systemd
cp systemd/arkdeamon.service /etc/systemd/system/arkdaemon.service
systemctl enable arkdeamon.service
cp systemd/arkdeamon.service /etc/systemd/system/arkmanager.service
systemctl enable arkmanager.service
fi
# Create a folder in /var/log to let Ark tools write its own log files