Skip to content

Instantly share code, notes, and snippets.

@santoshgistto
Forked from lukepighetti/README.md
Created March 2, 2025 19:33
Show Gist options
  • Save santoshgistto/19a76482369cffcf45a6b83878ae2b7e to your computer and use it in GitHub Desktop.
Save santoshgistto/19a76482369cffcf45a6b83878ae2b7e 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