-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Start Glances through Systemd
Nicolas Hennion edited this page Jul 6, 2016
·
12 revisions
Create a file called glances.service in the /etc/systemd/system/ folder.
For example, if you want to start a Glances server, edit this file as following:
[Unit]
Description=Glances
[Service]
ExecStart=/usr/local/bin/glances -s
Restart=on-abort
[Install]
WantedBy=multi-user.target
For a Glances Web server:
[Unit]
Description=Glances
[Service]
ExecStart=/usr/local/bin/glances -w
Restart=on-abort
[Install]
WantedBy=multi-user.target
For an active client exporting stats to a InfluxDB server:
[Unit]
Description=Glances
[Service]
ExecStart=/usr/local/bin/glances --quiet --export-influxdb
Restart=on-abort
[Install]
WantedBy=multi-user.target