Skip to content

Instantly share code, notes, and snippets.

@dillera
Last active September 29, 2022 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dillera/5cb3a1997b7284b3dbf24366b0dc6375 to your computer and use it in GitHub Desktop.
Save dillera/5cb3a1997b7284b3dbf24366b0dc6375 to your computer and use it in GitHub Desktop.
'########:'##::::'##:::::::'##:'####:'##::: ##:'########:'########:
##.....:: ##:::: ##::::::: ##:. ##:: ###:: ##: ##.....::... ##..::
##::::::: ##:::: ##::::::: ##:: ##:: ####: ##: ##:::::::::: ##::::
######::: ##:::: ##::::::: ##:: ##:: ## ## ##: ######:::::: ##::::
##...:::: ##:::: ##:'##::: ##:: ##:: ##. ####: ##...::::::: ##::::
##::::::: ##:::: ##: ##::: ##:: ##:: ##:. ###: ##:::::::::: ##::::
##:::::::. #######::. ######::'####: ##::. ##: ########:::: ##::::
..:::::::::.......::::......:::....::..::::..::........:::::..:::::
-----------------------
Setup SystemD
------------------------
[Unit]
Description=fujiNet TNFS
[Service]
ExecStart=/home/pi/fujinet_tnfsd/tnfsd /home/pi/fujinet_tnfsd/server_root -c www-data
Restart=on-failure
RestartSec=10
KillMode=process
[Install]
WantedBy=default.target
-----------------------
Commands:
vi /lib/systemd/system/tnfs.service
ln -s /lib/systemd/system/tnfs.service /etc/systemd/system/tnfs.service
chmod 640 /lib/systemd/system/tnfs.service
systemctl status tnfs.service
systemctl daemon-reload
systemctl enable tnfs
systemctl start tnfs
systemctl status tnfs.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment