Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/systemd/systemd.client.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2084 by niro, Fri May 10 13:15:26 2013 UTC revision 2089 by niro, Fri May 10 13:29:29 2013 UTC
# Line 30  set_system_service() Line 30  set_system_service()
30   return 1   return 1
31   fi   fi
32    
33     # auto-append .service to fix issues while $MROOT is set
34     if [[ -n $(echo ${service} | grep -v '.service$\|.target$\|.mount$\|.socket$\|.timer$') ]]
35     then
36     service="${service}.service"
37     decho "\$service replaced with '${service}'"
38     fi
39    
40   case "${command}" in   case "${command}" in
41   start) ${chrooted} systemctl start "${service}" ;;   start) ${chrooted} systemctl start "${service}" ;;
42   stop) ${chrooted} systemctl stop "${service}" ;;   stop) ${chrooted} systemctl stop "${service}" ;;

Legend:
Removed from v.2084  
changed lines
  Added in v.2089