PXE icon indicating copy to clipboard operation
PXE copied to clipboard

systemd init

Open barryking93 opened this issue 1 year ago • 2 comments

in case anyone else needs one like I did. this is working on ubuntu 22.04

[Unit]
Description=iVentoy tftp service
Wants=network-online.target
After=network-online.target
DefaultDependencies=no
Conflicts=shutdown.target
Before=shutdown.target

[Service]
Type=forking
# REPLACE WITH YOUR INSTALL DIRECTORY BELOW
WorkingDirectory=/usr/local/iventoy
ExecStart=bash iventoy.sh -R start
ExecStop=bash iventoy.sh stop

[Install]
WantedBy=multi-user.target

maybe make an examples/init or something similar in the release, for things like this?

barryking93 avatar Sep 06 '23 20:09 barryking93