-
Notifications
You must be signed in to change notification settings - Fork 36
Certstream as systemd service
Rico edited this page Nov 28, 2023
·
1 revision
Since Certstream comes as a single executable, you might want to run it via systemd. To do that, just create this systemd service at /etc/systemd/system/certstream.service:
[Unit]
Description=Certstream Server
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=on-failure
RestartSec=5
ExecStart=/opt/certstream-server-go/certstream-server-go
WorkingDirectory=/opt/certstream-server-go/
User=certstream
[Install]
WantedBy=multi-user.targetNote the User=certstream - this will make the application run as the user "certstream". Make sure to create a user account for the application. Don't run apps as root!
Now you can do all the cool systemd stuff. Run systemctl start certstream to start certstream.
Use systemctl status certstream to get information about the currently running process.
With systemctl enable certstream you can configure certstream to run at boot.