Skip to content

Instantly share code, notes, and snippets.

@cbrenton
Created June 22, 2016 16:52
Show Gist options
  • Select an option

  • Save cbrenton/5412c13cf6193cb4942cc1758df5e649 to your computer and use it in GitHub Desktop.

Select an option

Save cbrenton/5412c13cf6193cb4942cc1758df5e649 to your computer and use it in GitHub Desktop.
⁖ ll /usr/lib/systemd/system/st2*
-rw-r--r--. 1 root root 326 Apr 27 07:54 /usr/lib/systemd/system/st2actionrunner.service
-rw-r--r--. 1 root root 428 Apr 27 07:54 /usr/lib/systemd/system/st2actionrunner@.service
-rw-r--r--. 1 root root 498 Apr 27 07:54 /usr/lib/systemd/system/st2api.service
-rw-r--r--. 1 root root 501 Apr 27 07:54 /usr/lib/systemd/system/st2auth.service
-rw-r--r--. 1 root root 382 Apr 18 13:31 /usr/lib/systemd/system/st2chatops.service
-rw-r--r--. 1 root root 398 Apr 27 07:54 /usr/lib/systemd/system/st2garbagecollector.service
-rw-r--r--. 1 root root 374 Apr 27 07:54 /usr/lib/systemd/system/st2notifier.service
-rw-r--r--. 1 root root 392 Apr 27 07:54 /usr/lib/systemd/system/st2resultstracker.service
-rw-r--r--. 1 root root 383 Apr 27 07:54 /usr/lib/systemd/system/st2rulesengine.service
-rw-r--r--. 1 root root 395 Apr 27 07:54 /usr/lib/systemd/system/st2sensorcontainer.service
-rw-r--r--. 1 root root 508 Apr 27 07:54 /usr/lib/systemd/system/st2stream.service
cat /usr/lib/systemd/system/st2actionrunner.service
[Unit]
Description=StackStorm service st2actionrunner
After=network.target
[Service]
Type=oneshot
EnvironmentFile=-/etc/sysconfig/st2actionrunner
ExecStart=/bin/bash /opt/stackstorm/st2/bin/runners.sh start
ExecStop=/bin/bash /opt/stackstorm/st2/bin/runners.sh stop
RemainAfterExit=true
[Install]
WantedBy=multi-user.target
⁖ cat /usr/lib/systemd/system/st2actionrunner@.service
[Unit]
Description=StackStorm service st2actionrunner
After=network.target
[Service]
Type=simple
User=root
Group=st2packs
UMask=002
Environment="DAEMON_ARGS=--config-file /etc/st2/st2.conf"
Environment="WORKERID=%i"
EnvironmentFile=-/etc/sysconfig/st2actionrunner
ExecStart=/opt/stackstorm/st2/bin/st2actionrunner $DAEMON_ARGS
TimeoutSec=60
PrivateTmp=true
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment