Get the latest tech news

Writing a basic service for GNU Guix


Table of Contents Let's write a service for GNU Guix that will automatically start kmonad at boot, and keep it running until shutdown. Note: before we proceed, we could make a kmonad "daemon" without going to the trouble of writing a Guix-specific service: we could start kmonad in a shell profile, write a cron job, or something else.

This is a synchronization point used to make sure user processes and daemons get started only after crucial initial services have been started—file system mounts, etc. MAPPINGS is the list of <file-system-mapping> to make in the case of a separate mount namespace, in addition to essential bind-mounts such /proc. Note that this will not work as expected if the process “daemonizes” (forks); in that case, you will need to pass #:pid-file, as explained below.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of basic service

basic service

Photo of Guix

Guix

Photo of GNU Guix

GNU Guix

Related news:

News photo

Guix/Hurd on a ThinkPad X60

News photo

Attempting to Use GNU Guix (2019)

News photo

Is Guix full-source bootstrap a lie?