Changeset 56851 in vbox
- Timestamp:
- Jul 8, 2015 9:11:04 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/routines.sh
r56850 r56851 222 222 ExecStart=${script} start 223 223 ExecStop=${script} stop 224 225 [Install] 226 WantedBy=multi-user.target 224 227 EOF 225 228 } … … 349 352 fi 350 353 get_chkconfig_info "${init_d_path}/init.d/${name}" || return 1 354 if test -x "`which systemctl 2>/dev/null`" 355 then 356 systemctl enable "${name}" 351 357 # Redhat based sysvinit systems 352 if test -x "`which chkconfig 2>/dev/null`"358 elif test -x "`which chkconfig 2>/dev/null`" 353 359 then 354 360 chkconfig --add "${name}" || { … … 395 401 test ! -z "${name}" || \ 396 402 { log "${self}: missing argument" && return 1; } 403 if test -x "`which systemctl 2>/dev/null`" 404 then 405 systemctl disable "${name}" 397 406 # Redhat-based systems 398 if test -x "/sbin/chkconfig"407 elif test -x "/sbin/chkconfig" 399 408 then 400 409 /sbin/chkconfig --del "${name}" > /dev/null 2>&1
Note:
See TracChangeset
for help on using the changeset viewer.