Use invoke-rc.d to avoid service mask error. Fixes #9.

This commit is contained in:
James Valleroy 2014-12-02 22:28:43 -05:00 committed by Sunil Mohan Adapa
parent 4010b81ecc
commit 20318b2f25

View File

@ -20,7 +20,7 @@ hostname="$1"
echo "$hostname" > /etc/hostname
if [ -x /etc/init.d/hostname.sh ] ; then
service hostname.sh start
invoke-rc.d hostname.sh start
else
service hostname start
fi