Closed chiraag-nataraj closed 8 years ago
Try daemon command (sudo apt-get install daemon):
$ daemon firejail sleep 100
$ firejail --list
620:netblue:firejail sleep 100
$
I fixed it by just running the whole script inside firejail. I was having trouble because of the fetchmail and daemon options conflicting or something - it was weird. If I run the script inside firejail, then backgrounding works and firejail properly doesn't close.
I decided to use firejail to contain fetchmail to the files and directories it needs. I use it in daemon mode (as most people probably do). I also use gpg to encrypt the config file. So right now, the workflow is
/tmp
is atmpfs
).As you can tell, pretty simple. I tried putting
&
at the end (as I would normally do), but then fetchmail exited saying that no mail servers were specified. How would I go about fixing this? All I need is for firejail to background itself when fetchmail does.