Skip to content

Instantly share code, notes, and snippets.

@lepz0r
Created November 24, 2019 19:44
Show Gist options
  • Save lepz0r/92770408eae888aac14136444dd37c20 to your computer and use it in GitHub Desktop.
Save lepz0r/92770408eae888aac14136444dd37c20 to your computer and use it in GitHub Desktop.
s6-rc update script
#!/bin/sh
# Tested on Artix Linux
#
# Add a service that you want to enable to /etc/default/update6 (separated with newline or space)
export services=$(tr '\n' ' ' < /etc/default/update6)
s6-rc-bundle delete default
s6-rc-bundle add default $services
s6-rc-update /etc/s6/rc/compiled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment