I'm sure there's a simple fix for this but after some googling I'm at a loss. I also know there's probably another way of getting the daemon running but I feel like dinit-userservd should do the job if I could do it properly.
When I run cdemu-daemon from the console I get this output:
Starting CDEmu daemon with following parameters:
- config file: (null) (exists: 0)
- num devices: 1
- control device: /dev/vhba_ctl
- audio driver: null
- bus type: session
- default CDEmu debug mask: 0x0
- default libMirage debug mask: 0x0
Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
The process never daemonizes (the console remains occupied) which I think is related to my issue. This is my service file:
type = process
load-options = sub-vars
logfile = $HOME/.local/share/dinit/cdemu.log
command = /usr/bin/cdemu-daemon
restart = true
depends-on = dbus.user
The logfile contains the same information that is displayed when running from console, but the dinit-userservd log file contains this:
dinit: Service cdemu.user with pid 17928 exceeded allowed start time; cancelling.
dinit: Interrupting start of service cdemu.user with pid 17928 (with SIGINT).
[FAILED] cdemu.user
Even though the daemon does run, any idea what I'm doing wrong? I tried setting type to bgprocess but same result.