add gpio systemd service
This commit is contained in:
parent
9d7501c331
commit
44fce5cb15
|
@ -1,5 +0,0 @@
|
|||
html/doc/*
|
||||
html/media/*
|
||||
cgi-bin/w
|
||||
cgi-bin/v
|
||||
style.css
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
/usr/local/bin/gpio export 4 out
|
||||
/usr/local/bin/gpio export 17 out
|
||||
/usr/local/bin/gpio export 27 out
|
||||
/usr/local/bin/gpio export 22 out
|
||||
|
||||
exit
|
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=Activate GPIO
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/activate-gpio-out.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,2 @@
|
|||
[Service]
|
||||
StandardOutput=tty
|
|
@ -0,0 +1,16 @@
|
|||
|
||||
|
||||
This folder contains tools and scripts for initializing services,
|
||||
automation stuff and adminstration scripts
|
||||
|
||||
* GPIO systemd service
|
||||
|
||||
1) move activategpio.service to /etc/systemd/system/
|
||||
and ttyoutput.conf to /etc/systemd/system/activategpio.service.d/
|
||||
|
||||
2) move activate-gpio-out.sh to /usr/local/bin/activate-gpio-out.sh
|
||||
|
||||
3) activate service with
|
||||
|
||||
systemctl enable /etc/systemd/system/activategpio.service.d/
|
||||
|
|
@ -3,9 +3,9 @@ This folder contains all directories and files for the webinterface.
|
|||
|
||||
The following directories go to /var/www
|
||||
|
||||
www/cgi-bin path to CGI scripts
|
||||
www/html static files, images, css
|
||||
www/html/doc system documentation
|
||||
www/html/media datasheets, manuals and charts used in documentation
|
||||
www/tpl html templates
|
||||
- www/cgi-bin :: path to CGI scripts
|
||||
- www/html :: static files, images, css
|
||||
- www/html/doc :: system documentation
|
||||
- www/html/media :: datasheets, manuals and charts used in documentation
|
||||
- www/tpl :: html templates
|
||||
|
||||
|
|
Loading…
Reference in New Issue