mirror of
https://github.com/wspimentel/ispconfigubuntu.git
synced 2026-08-24 02:24:20 -05:00
20 lines
407 B
Bash
20 lines
407 B
Bash
#!/bin/bash
|
|
SERVICE=${2/%.service/}
|
|
case "$1" in
|
|
restart)
|
|
/etc/init.d/$SERVICE restart
|
|
;;
|
|
stop)
|
|
/etc/init.d/$SERVICE stop
|
|
;;
|
|
status)
|
|
/etc/init.d/$SERVICE status
|
|
;;
|
|
start)
|
|
/etc/init.d/$SERVICE start
|
|
;;
|
|
*)
|
|
command systemctloriginal "$@"
|
|
exit 1
|
|
esac
|