Add systemd service file
This commit is contained in:
parent
98862c7984
commit
82c8f29941
1 changed files with 18 additions and 0 deletions
18
piphone.system
Normal file
18
piphone.system
Normal file
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=RWS Pi Phone
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/pi-phone/pi-phone
|
||||
Type=simple
|
||||
Restart=always
|
||||
Environment='PIPHONE_EXTERNAL_ADDRESS=https://example.com'
|
||||
Environment='PIPHONE_SCHEDULED_CALLS=[{"t":1730989200,"n":"+440000000000"}]'
|
||||
Environment='PIPHONE_TWILIO_ACCOUNT_AUTH_TOKEN=authtoken'
|
||||
Environment='PIPHONE_TWILIO_ACCOUNT_SID=accountsid'
|
||||
Environment='PIPHONE_TWILIO_FROM_NUMBER=+440000000000'
|
||||
Environment='PIPHONE_HTTP_ADDRESS=0.0.0.0:4600'
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
RequiredBy=network.target
|
Loading…
Add table
Add a link
Reference in a new issue