Skip to content

Instantly share code, notes, and snippets.

@lukepighetti
Last active August 26, 2024 19:25
Show Gist options
  • Save lukepighetti/86db9bd0fd5cc6be2bb4b11631652b18 to your computer and use it in GitHub Desktop.
Save lukepighetti/86db9bd0fd5cc6be2bb4b11631652b18 to your computer and use it in GitHub Desktop.
pocketbase systemd
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment