-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to using tedge-configuration-plugin
- Loading branch information
1 parent
4d7a6d3
commit e3ebb65
Showing
26 changed files
with
54 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...es/openrc/conf.d/c8y-configuration-plugin → .../openrc/conf.d/tedge-configuration-plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...es/openrc/init.d/c8y-configuration-plugin → .../openrc/init.d/tedge-configuration-plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh -e | ||
touch "/var/log/tedge-configuration-plugin.log" | ||
DAEMON_USER="root" | ||
LOG_FILE="/var/log/tedge-configuration-plugin.log" | ||
PIDFILE="/run/lock/tedge-configuration-plugin.lock" | ||
|
||
mkdir -p /run/lock | ||
chown 1777 /run/lock | ||
touch "$PIDFILE" | ||
|
||
if [ -n "$DAEMON_USER" ]; then | ||
chown "$DAEMON_USER" "$PIDFILE" | ||
chown "$DAEMON_USER" "/var/log/tedge-configuration-plugin.log" | ||
fi | ||
exec chpst -u "$DAEMON_USER" "/usr/bin/tedge-configuration-plugin" >> "$LOG_FILE" 2>&1 |
1 change: 0 additions & 1 deletion
1
services/s6-overlay/s6-rc.d/c8y-configuration-plugin-log/consumer-for
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
services/s6-overlay/s6-rc.d/c8y-configuration-plugin-log/pipeline-name
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
services/s6-overlay/s6-rc.d/c8y-configuration-plugin/producer-for
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
services/s6-overlay/s6-rc.d/tedge-configuration-plugin-log/consumer-for
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tedge-configuration-plugin |
1 change: 1 addition & 0 deletions
1
services/s6-overlay/s6-rc.d/tedge-configuration-plugin-log/pipeline-name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tedge-configuration-plugin-pipeline |
2 changes: 2 additions & 0 deletions
2
services/s6-overlay/s6-rc.d/tedge-configuration-plugin-log/run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
sed 's/^/\x1b[34mtedge-configuration-plugin |\x1b[0m /' --unbuffered |
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
services/s6-overlay/s6-rc.d/tedge-configuration-plugin/producer-for
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tedge-configuration-plugin-log |
4 changes: 2 additions & 2 deletions
4
...rlay/s6-rc.d/c8y-configuration-plugin/run → ...ay/s6-rc.d/tedge-configuration-plugin/run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/command/with-contenv sh | ||
if [ "${SERVICE_C8Y_CONFIGURATION_PLUGIN:-1}" -eq 0 ]; then | ||
if [ "${SERVICE_TEDGE_CONFIGURATION_PLUGIN:-1}" -eq 0 ]; then | ||
# Disable service and don't start again | ||
# https://github.com/just-containers/s6-overlay/issues/394 | ||
s6-svc -O . | ||
exit 0 | ||
fi | ||
|
||
exec 2>&1 | ||
exec /usr/bin/c8y-configuration-plugin | ||
exec /usr/bin/tedge-configuration-plugin |
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...sord/conf.d/c8y-configuration-plugin.conf → ...rd/conf.d/tedge-configuration-plugin.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
159 changes: 0 additions & 159 deletions
159
services/sysvinit-yocto/init.d/c8y-configuration-plugin
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.