| 1 | # This file is part of drbl/Cloneizlla-SE. |
| 2 | # Author : Ceasar Sun <ceasar _at_ nchc org tw> |
| 3 | |
| 4 | [Unit] |
| 5 | Description=OCS-run service via Clonezilla |
| 6 | DefaultDependencies=no |
| 7 | After=remote-fs.target sshd.service |
| 8 | #After=basic.target plymouth-start.service |
| 9 | #Before=rescue.target |
| 10 | AllowIsolate=true |
| 11 | Conflicts=mkswapfile.service |
| 12 | |
| 13 | [Service] |
| 14 | Environment=HOME=/root |
| 15 | WorkingDirectory=/root |
| 16 | Environment=TERM=linux |
| 17 | ExecStartPre=-/bin/plymouth quit |
| 18 | ExecStartPre=-/usr/sbin/systemctl stop mkswapfile.service |
| 19 | ExecStart=/etc/init.d/ocs-run start |
| 20 | Type=oneshot |
| 21 | StandardInput=tty-force |
| 22 | StandardOutput=inherit |
| 23 | StandardError=inherit |
| 24 | #KillMode=process |
| 25 | |
| 26 | # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash |
| 27 | # terminates cleanly. |
| 28 | #KillSignal=SIGHUP |