X-Git-Url: http://git.pld-linux.org/?p=packages%2Flibcgroup.git;a=blobdiff_plain;f=cgconfig.service;fp=cgconfig.service;h=6650b4a11ae4471777832a6b2a7e31f2a4494dfa;hp=0000000000000000000000000000000000000000;hb=9166bcc3b4842e8f166a3ec6bc0c89d40981e451;hpb=33ef256648564f67db8e6c277e356c9b10e0bb00 diff --git a/cgconfig.service b/cgconfig.service new file mode 100644 index 0000000..6650b4a --- /dev/null +++ b/cgconfig.service @@ -0,0 +1,17 @@ +[Unit] +Description=Control Group configuration service + +# The service should be able to start as soon as possible, +# before any 'normal' services: +DefaultDependencies=no +Conflicts=shutdown.target +Before=basic.target shutdown.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/sbin/cgconfigparser -l /etc/cgconfig.conf -s 664 +ExecStop=/sbin/cgclear -l /etc/cgconfig.conf -e + +[Install] +WantedBy=sysinit.target