Parrot-Developers / node-flower-bridge

[Ble/Cloud bridge] Synchronize your Flower Powers with a raspberry. Now you can take holidays safely.
BSD 3-Clause "New" or "Revised" License
36 stars 21 forks source link

system service #6

Closed korniza closed 4 years ago

korniza commented 8 years ago

I just created a simple system service on odroid XU4. here is the code:

[Unit]
Description=Synchronize your Flower Powers with a raspberry
After=network.target

[Service]
Type=forking
User=root
Group=root
WorkingDirectory=/opt/bridge
ExecStart=/opt/bridge/bridge background 15
ExecStop=/opt/bridge/bridge stop

[Install]
WantedBy=multi-user.target