aboutsummaryrefslogtreecommitdiffstats
path: root/add-service
diff options
context:
space:
mode:
Diffstat (limited to 'add-service')
-rwxr-xr-xadd-service3
1 files changed, 3 insertions, 0 deletions
diff --git a/add-service b/add-service
index 6ab9244..c05ad5c 100755
--- a/add-service
+++ b/add-service
@@ -83,6 +83,9 @@ else
if [ -f "$1" ]; then
/sbin/chkconfig --add $srv
+ if [ -x /bin/systemctl ]; then
+ /bin/systemctl --enable ${srv}.service
+ fi
fi
# restart the service if already running