systemd
Linux
This guide walks through setting up orbien-server as a systemd service on Linux.
- Install systemd
# CentOS/RHEL
yum install systemd
# Debian/Ubuntu
apt install systemd
- Create the orbien-server service unit
sudo tee /etc/systemd/system/orbien-server.service > /dev/null << 'EOF'
[Unit]
Description = orbien server
After = network.target syslog.target
Wants = network.target
[Service]
Type = simple
# Replace with the actual paths on your system
ExecStart = /path/to/orbien-server -c /path/to/orbien-server.toml
[Install]
WantedBy = multi-user.target
EOF
- Enable the service to start on boot
sudo systemctl enable orbien-server
Common commands
- Start orbien-server
sudo systemctl start orbien-server
- Stop orbien-server
sudo systemctl stop orbien-server
- Restart orbien-server
sudo systemctl restart orbien-server
- Check orbien-server status
sudo systemctl status orbien-server