| 1 | # This file is part of drbl/Cloneizlla-SE. |
| 2 | # |
| 3 | # systemd is free software; you can redistribute it and/or modify it |
| 4 | # under the terms of the GNU General Public License as published by |
| 5 | # the Free Software Foundation; either version 2 of the License, or |
| 6 | # (at your option) any later version. |
| 7 | |
| 8 | [Unit] |
| 9 | Description=OCS-run service via Clonezilla |
| 10 | DefaultDependencies=no |
| 11 | After=remote-fs.target sshd.service |
| 12 | #After=basic.target plymouth-start.service |
| 13 | #Before=rescue.target |
| 14 | AllowIsolate=true |
| 15 | Conflicts=mkswapfile.service |
| 16 | |
| 17 | [Service] |
| 18 | Environment=HOME=/root |
| 19 | WorkingDirectory=/root |
| 20 | Environment=TERM=linux |
| 21 | ExecStartPre=-/bin/plymouth quit |
| 22 | ExecStartPre=-/usr/sbin/systemctl stop mkswapfile.service |
| 23 | ExecStart=/etc/init.d/ocs-run start |
| 24 | Type=oneshot |
| 25 | StandardInput=tty-force |
| 26 | StandardOutput=inherit |
| 27 | StandardError=inherit |
| 28 | #KillMode=process |
| 29 | |
| 30 | # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash |
| 31 | # terminates cleanly. |
| 32 | #KillSignal=SIGHUP |