![]() ![]() ![]() ![]() ĮxecStartPre=/usr/bin/bash -c "for i in $įor those who have done packaged installs, they can likely comment out the "ExecStartPre" line, and then set BASE=/usr/share/java and PROPERTIES=/etc/davmail.properties. Solution for using Davmail with the rver=true directive, assuming you have performed a manual install. Has anyone successfully written a systemd service file for DavMail that they'd be willing to share?Īfter a little bit of experimentation, I found a somewhat-more-optimal But maybe there's a much simpler explanation. I think an issue here is that DavMail requires a Java interpreter to run, and systemd service files aren't as flexible as shell scripts in handing off the job to a Java interpreter. Changing the Service Type to oneshot or simple also fails. Prepending the ExecStart command with /usr/bin/nohup is no help, because systemd complains about an invalid argument (preferring to take control of the daemonization itself, if I'm correctly understanding previous forum answers). My attempt at a custom systemd service file is ĮxecStart=/usr/bin/davmail /etc/conf.d/davmail.properties Now that I've made the computer into a headless server, I'd like the auto-launcher to be independent of an X session.Īll the guides I've seen online for a DavMail initscript assume that the distro is using sysvinit, not systemd. Previously I had a line in my ~/.xinitrc that read nohup /usr/bin/davmail /etc/conf.d/davmail.propertiesĪs per the DavMail instructions (where /usr/bin/davmail is a symlink to /usr/share/java/davmail/davmail.sh). I'm trying to follow the ArchWiki guide for writing a custom service file to launch DavMail as a system-wide daemon. ![]()
0 Comments
Leave a Reply. |