Browse Source

update script

Кошуба Валерий Олегович 5 years ago
parent
commit
9e3eb09a0d
1 changed files with 6 additions and 12 deletions
  1. 6 12
      zramraid.deb/lib/systemd/system/zramraid.service

+ 6 - 12
zramraid.deb/lib/systemd/system/zramraid.service

@@ -1,20 +1,14 @@
1 1
 [Unit]
2 2
 SourcePath=/etc/zraid/zraid-maker
3
-Description=VirtualBox Linux kernel module
4
-Before=runlevel2.target runlevel3.target runlevel4.target runlevel5.target shutdown.target 
5
-After=
3
+Description=zram raid system
4
+Before=libvirt-guests.service libvirtd.service runlevel2.target runlevel3.target runlevel4.target runlevel5.target shutdown.target 
5
+After=dbus.service iscsid.service apparmor.service local-fs.target
6 6
 Conflicts=shutdown.target 
7 7
 
8 8
 [Service]
9
-Type=forking
10
-Restart=no
11
-TimeoutSec=5min
12
-IgnoreSIGPIPE=no
13
-KillMode=process
14
-GuessMainPID=no
15
-RemainAfterExit=yes
16
-ExecStart=/usr/lib/virtualbox/vboxdrv.sh start
17
-ExecStop=/usr/lib/virtualbox/vboxdrv.sh stop
9
+Type=oneshot
10
+ExecStart=/etc/init.d/zramraid-manager start
11
+ExecStop=/etc/init.d/zramraid-manager stop
18 12
 
19 13
 [Install]
20 14
 WantedBy=multi-user.target