[Unit]
| Section defining demon metadata and its relationship settings with other demons |
Description=Consul Service discovery agent | Demon name |
Requires=network-online.target | Services cannot operate without network-online.target |
After=network-online.service | Demons that will be run before the current demon is started |
| | |
[Service] | Demon start setting section |
StandartOutput=syslog | Redirecting standard output to syslog |
StandartError=syslog | Redirecting standard error to syslog |
Type=simple
| Demon start type. | } | simple - demon starts and switches to waiting mode on the console |
User=iwtm
| User name on behalf of which demon is started |
Group=iwtm
| User group name |
SyslogIdentifier=iwtm-consul
| Defines process name for log prefix rows, which are sent to logging system or to core log buffer. |
PermissionsStartOnly=true | Starting commands from ExecStartPre on behalf of the root user |
ExecStartPre=/opt/iw/tm5/bin/consul validate /opt/iw/tm5/etc/consul | Full path and command arguments which should be completed before starting the main process. |
ExecStart=/opt/iw/tm5/bin/consul agent $OPTIONS -config -dir= /opt/iw/tm5/etc/consul
| Full path and command arguments which should be completed to start demon. The command is to be run on behalf of the user defined in User. |
ExecReload=/bin/kill -s SIGHUP $MAINPID
| The command restarts demon configuration, if it is accessible. The command is to be run on behalf of the user defined in User. |
KillSignal=SIGINT
| The command stops demon's work forcefully |
TimeoutStopSec=5
| Period of time within which the system waits for demon to stop, before labeling it as inaccessible or stopped forcefully. |
| |
| | |
[Install]
| Defining demon's behaviour, if it is enabled or disabled |
WantedBy=multi-user.target
| Start this demon, when the system is loading in a multi-user mode |