diff options
Diffstat (limited to 'add-service')
-rwxr-xr-x | add-service | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/add-service b/add-service index 731a66b..90dbf2d 100755 --- a/add-service +++ b/add-service @@ -24,6 +24,11 @@ add_chkconfig_service() { /sbin/chkconfig --add $srv + # support for systemd + if [ -x /bin/systemctl ]; + /bin/systemctl enable ${srv}.service > /dev/null 2>&1 + fi + if [ -r /etc/sysconfig/system ]; then . /etc/sysconfig/system fi |