[Unit]
Description=Skynet Skycore
After=network-online.target yandex-porto.service local-fs.target place.mount ssd.mount
Requires=network-online.target local-fs.target
Wants=yandex-porto.service
Conflicts=umount.target shutdown.target
Before=umount.target shutdown.target

[Service]
ExecStart=/skynet/startup/skyctl init --start-services --wait 180
ExecStop=/skynet/startup/skyctl shutdown --stop-services
Type=oneshot
TimeoutStartSec=10min
TimeoutStopSec=5min
RemainAfterExit=true
SuccessExitStatus=0 1 2
Delegate=true

[Install]
WantedBy=multi-user.target
