Commit 36dac0e8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

serv: add support for FORCESERVICE

parent 1ced3c17
...@@ -96,7 +96,11 @@ esac ...@@ -96,7 +96,11 @@ esac
# Note: force systemd using if active # Note: force systemd using if active
is_active_systemd && CMD="systemd" is_active_systemd && CMD="systemd"
# override system control detection result
[ -n "$FORCESERVICE" ] && CMD=$FORCESERVICE
SERVICETYPE=$CMD SERVICETYPE=$CMD
} }
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
# FIXME: sudo ask password, but we do not print command before
is_service_running() is_service_running()
{ {
case $SERVICETYPE in case $SERVICETYPE in
...@@ -36,6 +37,7 @@ is_service_running() ...@@ -36,6 +37,7 @@ is_service_running()
esac esac
} }
# FIXME: sudo ask password, but we do not print command before
is_service_autostart() is_service_autostart()
{ {
case $SERVICETYPE in case $SERVICETYPE in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment