| 1 | # This is a "job" for the Upstart init system to launch 'guix-daemon'. |
| 2 | # Drop it in /etc/init to have 'guix-daemon' automatically started. |
| 3 | |
| 4 | description "Publish the GNU Guix store" |
| 5 | |
| 6 | start on runlevel [2345] |
| 7 | |
| 8 | stop on runlevel [016] |
| 9 | |
| 10 | task |
| 11 | |
| 12 | exec @localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix publish --user=nobody --port=8181 |