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

mcore-src/trunk/mcore-tools/daemon/client/include/systemd.client.class revision 2084 by niro, Fri May 10 13:15:26 2013 UTC mcore-src/trunk/mcore-tools/src/modules/systemd/systemd.client.class.in revision 2164 by niro, Fri Jan 10 13:59:40 2014 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}" ;;
43   restart) ${chrooted} systemctl try-restart "${service}" ;;   restart) ${chrooted} systemctl try-restart "${service}" ;;
44   reload) ${chrooted} systemctl reload-or-try-restart "${service}" ;;   reload) ${chrooted} systemctl reload-or-try-restart "${service}" ;;
45   add) ${chrooted} systemctl enable "${service}" ;;   enable) ${chrooted} systemctl enable "${service}" ;;
46   del) ${chrooted} systemctl disable "${service}" ;;   disable) ${chrooted} systemctl disable "${service}" ;;
47   *) help_system_service && return ;;   *) help_system_service && return ;;
48   esac   esac
49  }  }

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