How do I setup a FeatureBase systemd
service?
Setup FeatureBase Community to run as a systemd
service.
You can also startup FeatureBase from the CLI
Table of contents
Before you begin
- Create a user to run the service
- Obtain
sudo
privileges
systemd
services are created in /etc/systemd/system
systemd
parameters for featurebase.service
Save these settings as featurebase.service
[Unit]
Description="<human-readable-description>"
[Service]
RestartSec=<integer>
Restart=on-failure
User=<featurebase-user>
ExecStart=/usr/local/bin/featurebase/opt/featurebase server
[Install]
WantedBy=multi-user.target
Parameters
Parameter | Description | Default |
---|---|---|
Description | Human readable service description | |
RestartSec=<integer> | Seconds after FeatureBase will restart | RestartSec=30 |
Restart=onfailure | FeatureBase will automatically restart on failure | |
User=<featurebase-user> | The service will run under this user | |
Execstart= | Path to startup files | /usr/local/bin/featurebase/opt/featurebase server |
WantedBy=multi-user.target | multi-user-target description |
Additional information
- You must run
sudo systemctl daemon-reload
to refreshsystemd
afterfeaturebase.service
is saved.