[Openmcl-devel] "Bad file descriptor during read" - nohup issue???

Vladimir Sedach vas at oneofus.la
Tue Feb 11 10:38:08 PST 2020


If the GNU/Linux distribution on your server has systemd as the init
system, you can forego a terminal multiplexer with a Type=simple
service, which does not close stdin, and logs stdout and stderr.

This also gives you an easy way to get automatic server startup and
restarts, and possibly other useful things.

Here is a renamed example from a server running SBCL:

/etc/systemd/system/my-server.service
--8<---------------cut here---------------start------------->8---
[Unit]
Description=MY-SERVER

[Service]
User=my-server
Group=my-server
WorkingDirectory=/home/my-server/deploy
ExecStart=/usr/local/bin/sbcl --userinit /home/my-server/deploy/startup.lisp
Type=simple


[Install]
WantedBy=multi-user.target
--8<---------------cut here---------------end--------------->8---

--
Vladimir Sedach
Software engineering services in Los Angeles https://oneofus.la



More information about the Openmcl-devel mailing list