mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
pservice: initial version
The can be convenient for running commands or services as procd services without needing to separately write initscripts, just uci configuration. The package was imported from [1]. [1] https://github.com/yousong/waller/tree/0a85f5c75fb70627f68cbbcab4807e02e3299e2e/pservice Ref: https://github.com/yousong/waller/issues/1 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
config pservice
|
||||
option disabled 1
|
||||
option name 'demo0'
|
||||
option command /bin/sh
|
||||
option respawn_maxfail 0
|
||||
list args -c
|
||||
list args 'env | logger -t $name; exec sleep $time'
|
||||
list env 'v0=0'
|
||||
list env 'v1=val with space'
|
||||
list env 'name=demo0'
|
||||
list env 'time=1799'
|
||||
list file /tmp/sleep.conf
|
||||
|
||||
config pservice
|
||||
option disabled 1
|
||||
option name 8021x
|
||||
option command /usr/sbin/wpa_supplicant
|
||||
option stdout 1
|
||||
list args -i
|
||||
list args eth0.1
|
||||
list args -D
|
||||
list args wired
|
||||
list args -c
|
||||
list args /etc/wpa_supplicant-eth0.1.conf
|
||||
Reference in New Issue
Block a user