<div dir="ltr"><div><span style="font-size:12.8px">I'm trying to write a basic systemd service. The ExecStart command I'm using works. The systemd service doesn't. It throws a cryptic error and I can't find any documentation on the web that makes any sense of it. I posted on this list and got no responses. Is this list active? If not is there somewhere I can get basic help for setting up a service. Systemd is the default tool daemonizing on most Linux distros right? There must be some way to get help to get a basic example working.</span></div><span style="font-size:12.8px"><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">My previous email:</span></div><div><span style="font-size:12.8px"><br></span></div>I am trying to create a </span><span class="gmail-il" style="font-size:12.8px">systemd</span><span style="font-size:12.8px"> service to manage the celery task queue</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">My service file is :</div><div style="font-size:12.8px"><div>[Unit]</div><div>Description=Celery bf Service</div><div>After=network.target</div><div><br></div><div>[Service]</div><div>Type=forking</div><div>User=doug</div><div>Group=doug</div><div>WorkingDirectory=/home/doug/ww<wbr>w/my_project</div><div>ExecStart=/home/doug/.virtuale<wbr>nvs/bf-env/bin/celery    -A tasks worker   --app=tasks.celery_app:app   --logfile=/var/log/celery/bf/<wbr>%n%I.log   --loglevel=INFO   -Ofair --time-limit=300</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">When I run:</div><div style="font-size:12.8px">$ systemctl start celery_bf.service</div><div style="font-size:12.8px">I get:</div><div style="font-size:12.8px">Job for celery_bf.service failed because a configured resource limit was exceeded. See "systemctl status celery_bf.service" and "journalctl -xe" for details.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">$ systemctl status celery_bf.service</div><div style="font-size:12.8px"><div>● celery_bf.service - Celery bf Service</div><div>   Loaded: loaded (/etc/<span class="gmail-il">systemd</span>/system/celery_bf<wbr>.service; enabled; vendor preset: disabled)</div><div>   Active: failed (Result: resources)</div><div><br></div><div>Nov 20 13:57:20 stower <span class="gmail-il">systemd</span>[1]: celery_bf.service failed.</div><div>Nov 20 13:57:20 stower <span class="gmail-il">systemd</span>[1]: Starting Celery bf Service...</div><div>Nov 20 13:58:33 stower <span class="gmail-il">systemd</span>[1]: celery_bf.service failed to run 'start' task: Operation not supported</div><div>Nov 20 13:58:33 stower <span class="gmail-il">systemd</span>[1]: Failed to start Celery bf Service.</div><div>Nov 20 13:58:33 stower <span class="gmail-il">systemd</span>[1]: celery_bf.service failed.</div><div>Nov 20 13:58:33 stower <span class="gmail-il">systemd</span>[1]: Starting Celery bf Service...</div><div>Nov 20 14:06:03 stower <span class="gmail-il">systemd</span>[1]: celery_bf.service failed to run 'start' task: Operation not supported</div><div>Nov 20 14:06:03 stower <span class="gmail-il">systemd</span>[1]: Failed to start Celery bf Service.</div><div>Nov 20 14:06:03 stower <span class="gmail-il">systemd</span>[1]: celery_bf.service failed.</div><div>Nov 20 14:06:03 stower <span class="gmail-il">systemd</span>[1]: Starting Celery bf Service...</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">$ journalctl -xe</div><div style="font-size:12.8px"><div>Nov 20 14:05:12 stower polkitd[29785]: Unregistered Authentication Agent for unix-process:11449:78569047 (system bus name :1.1184, object path /org/freedesktop</div><div>Nov 20 14:06:00 stower polkitd[29785]: Registered Authentication Agent for unix-process:11476:78574149 (system bus name :1.1187 [/usr/bin/pkttyagent --notify-f</div><div>Nov 20 14:06:03 stower polkitd[29785]: Operator of unix-process:11476:78574149 successfully authenticated as unix-user:doug to gain ONE-SHOT authorization for </div><div>Nov 20 14:06:03 stower <span class="gmail-il">systemd</span>[1]: celery_bf.service failed to run 'start' task: Operation not supported</div><div>Nov 20 14:06:03 stower <span class="gmail-il">systemd</span>[1]: Failed to start Celery bf Service.</div><div>-- Subject: Unit celery_bf.service has failed</div><div>-- Defined-By: <span class="gmail-il">systemd</span></div><div>-- Support: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">http://lists.<wbr>freedesktop.org/mailman/<wbr>listinfo/<span class="gmail-il">systemd</span>-devel</a></div><div>-- </div><div>-- Unit celery_bf.service has failed.</div></div></div>