diff --git a/FileBrowserService b/FileBrowserService new file mode 100644 index 0000000..2447eb4 --- /dev/null +++ b/FileBrowserService @@ -0,0 +1,20 @@ +nano /etc/systemd/system/filebrowser.service + +Add Contents +------------------------------- +[Unit] +Description=File Browser Service +After=network.target + +[Service] +Type=simple +Restart=on-failure +RestartSec=5s +ExecStart=/root/linux-amd64-filebrowser -c /root/config.yaml + +[Install] +WantedBy=multi-user.target +--------------------------------- + +sudo systemctl start filebrowser.service +sudo systemctl enable filebrowser.service \ No newline at end of file