Skip to content

Commit

Permalink
changed startup type to exec
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Jan 3, 2019
1 parent 8ee050e commit d3213e5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/systemd/example-leds.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=Example LEDs
Requires=fadecandy.service

[Service]
Type=exec
WorkingDirectory=/opt/fadecandy/examples/python
ExecStart=/usr/bin/env python /opt/fadecandy/examples/python/chase.py
Restart=always

[Install]
WantedBy=multi-user.target
12 changes: 12 additions & 0 deletions examples/systemd/fadecandy.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=Fadecandy Server
After=network.target

[Service]
Type=exec
WorkingDirectory=/opt/fadecandy/server
ExecStart=/opt/fadecandy/server/fcserver config.json
Restart=always

[Install]
WantedBy=multi-user.target

0 comments on commit d3213e5

Please sign in to comment.