Add FileBrowserService
This commit is contained in:
20
FileBrowserService
Normal file
20
FileBrowserService
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user