User Tools

Site Tools


filebrowser:membuat-service

Cara Membuat Service Filebrowser

Agar filebrowser dapat dijalankan sebagai service maka berikut ini adalah tahapan cara membuatnya.

mkdir /filebrowser/
nano /filebrowser/filebrowser.sh

isi dengan

#!/bin/bash
filebrowser -a 103.175.218.12 -p 81 -d /filebrowser/filebrowser.db -r /media_masjd/

Kemudian file service

nano /etc/systemd/system/filebrowser.service

isi dengan

Unit]
Description=Filebrowser-Media-Masjd
After=network-online.target

[Service]
ExecStart=/filebrowser/filebrowser.sh

[Install]
WantedBy=multi-user.target

dan silahkan dicoba

systemctl start filebrowser
systemctl enable filebrowser
systemctl status filebrowser

Layanan

Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |
filebrowser/membuat-service.txt · Last modified: 2024/12/11 21:21 by kbadmin

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki