Skip to content

Instantly share code, notes, and snippets.

@matthewberryman
Last active November 25, 2019 11:42
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save matthewberryman/fa21ca796c3a2e0dfe8224934b7b055c to your computer and use it in GitHub Desktop.
Save matthewberryman/fa21ca796c3a2e0dfe8224934b7b055c to your computer and use it in GitHub Desktop.
greengrass systemd
[Unit]
Description=greengrass daemon
After=network.target
[Service]
ExecStart=/greengrass/ggc/core/greengrassd start
Type=simple
RestartSec=2
Restart=always
User=root
PIDFile=/var/run/greengrassd.pid
[Install]
WantedBy=multi-user.target
#!/usr/bin/env /bin/bash
sudo cp greengrass.service /etc/systemd/system
sudo systemctl enable greengrass
sudo systemctl start greengrass
@mstfldmr
Copy link

mstfldmr commented Nov 7, 2018

I get some warnings while enabling and greengrass does not start at boot.

root@dellipc:~# sudo systemctl enable greengrass
Synchronizing state of greengrass.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable greengrass
insserv: warning: script 'greengrass' missing LSB tags and overrides
insserv: There is a loop between service watchdog and greengrass if stopped
insserv: loop involving service greengrass at depth 2
insserv: loop involving service watchdog at depth 1
insserv: Stopping greengrass depends on watchdog and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment