mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 05:13:58 -07:00
More netconf work... set ZT_HOME and chdir there on service launch.
This commit is contained in:
parent
99c5fae9da
commit
42f6aae259
3 changed files with 18 additions and 1 deletions
13
netconf-service/netconf.service
Executable file
13
netconf-service/netconf.service
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
export PATH=/bin:/usr/bin:/usr/local/bin
|
||||
|
||||
# We will start in ZT_HOME
|
||||
|
||||
if [ ! -d ./services.d/netconf-service ]; then
|
||||
echo 'cannot find netconf-service subfolder to launch subprocess' >>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd services.d/netconf-service
|
||||
exec node index.js
|
Loading…
Add table
Add a link
Reference in a new issue