vim /lib/systemd/system/pocketbase.service
systemctl enable pocketbase
systemctl start pocketbase
systemctl status pocketbase
systemctl stop pocketbase
systemctl restart pocketbase
[Unit] | |
Description = pocketbase | |
[Service] | |
Type = simple | |
User = root | |
Group = root | |
LimitNOFILE = 4096 | |
Restart = always | |
RestartSec = 5s | |
StandardOutput = append:/root/output.log | |
StandardError = append:/root/errors.log | |
ExecStart = /root/pocketbase serve pocketbased.chadflare.com | |
[Install] | |
WantedBy = multi-user.target |