add update script
This commit is contained in:
parent
f9c1430a48
commit
61ccd7a5e7
3 changed files with 11 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
type = process
|
||||
# change the following line based on where the executable is
|
||||
command = /usr/bin/bwrap --bind / / --tmpfs /home --unshare-all /opt/status/status
|
||||
working-dir = /opt/status
|
||||
command = /usr/bin/bwrap --bind / / --tmpfs /home --unshare-all ./status
|
||||
working-dir = $HOME/c/status
|
||||
logfile = /opt/status-config/exozyme-status.log
|
||||
load-options = sub-vars
|
|
@ -4,7 +4,7 @@
|
|||
# dinitctl enable status-updator
|
||||
|
||||
type = process
|
||||
command = /opt/status/proto/dumb-updater
|
||||
working-dir = /opt/status
|
||||
command = ./proto/dumb-updater
|
||||
working-dir = $HOME/c/status
|
||||
logfile = $HOME/.log/exozyme-status-updater.log
|
||||
# load-options = sub-vars
|
7
update-dinit-config
Executable file
7
update-dinit-config
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/fish
|
||||
go build && \
|
||||
ln -srf proto/dinit-service ~/.config/dinit.d/status && \
|
||||
ln -srf proto/dinit-updater-service ~/.config/dinit.d/status-updater && \
|
||||
for x in status status-updater
|
||||
dinitctl reload $x && dinitctl restart $x || dinitctl start $x
|
||||
end
|
Loading…
Reference in a new issue