From: Adam Carter <adamcarter3@gmail.com>
To: "gentoo-user@lists.gentoo.org" <gentoo-user@lists.gentoo.org>
Subject: [gentoo-user] systemd service file for http-replicator
Date: Tue, 24 Dec 2013 19:30:25 +1100 [thread overview]
Message-ID: <CAC=wYCGbzBbAcXNUZVMGgm=ML8bja9=x6w0pbtfZk-_-F=rFyw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2968 bytes --]
http-replicator is a python script. My service file is as below, and if i
run the command that it generates on the command line it works.
[Unit]
Description=HTTP Replicator
After=network.target
[Service]
EnvironmentFile=/etc/conf.d/http-replicator
#Type=forking
Type=simple
PIDFile=/var/run/http-replicator.pid
ExecStart=/usr/bin/http-replicator $DAEMON_OPTS
KillSignal=SIGINT
#User=
[Install]
WantedBy=multi-user.target
# systemctl status http-replicator
http-replicator.service - HTTP Replicator
Loaded: loaded (/usr/lib64/systemd/system/http-replicator.service;
disabled)
Active: inactive (dead)
Dec 23 16:55:46 proxy systemd[16295]: Executing: /usr/bin/http-replicator
--daemon --dir /home/http-replicator --user portage --alias
/usr/portage/packages:packages --log /... --port 8081
Dec 23 16:55:46 proxy systemd[1]: Child 16295 belongs to
http-replicator.service
Dec 23 16:55:46 proxy systemd[1]: http-replicator.service: main process
exited, code=exited, status=0/SUCCESS
Dec 23 16:55:46 proxy systemd[1]: http-replicator.service changed running
-> stop-sigterm
Dec 23 16:55:46 proxy systemd[1]: http-replicator.service: cgroup is empty
Dec 23 16:55:46 proxy systemd[1]: http-replicator.service changed
stop-sigterm -> dead
Dec 23 16:55:46 proxy systemd[1]: Collecting http-replicator.service
Dec 23 16:55:49 proxy systemd[1]: Collecting http-replicator.service
Dec 23 16:57:54 proxy systemd[1]: Collecting http-replicator.service
Dec 23 16:59:52 proxy systemd[1]: Collecting http-replicator.service
Dec 24 18:53:27 proxy systemd[1]: Collecting http-replicator.service
With Type=forking, systemctl start http-replicator is slow and;
# systemctl status http-replicator
http-replicator.service - HTTP Replicator
Loaded: loaded (/usr/lib64/systemd/system/http-replicator.service;
disabled)
Active: failed (Result: timeout) since Tue 2013-12-24 19:27:28 EST; 10s
ago
Process: 20430 ExecStart=/usr/bin/http-replicator $DAEMON_OPTS
(code=exited, status=0/SUCCESS)
Dec 24 19:25:58 proxy systemd[1]: Setting watch for
http-replicator.service's PID file /var/run/http-replicator.pid
Dec 24 19:25:58 proxy systemd[1]: Trying to read http-replicator.service's
PID file /var/run/http-replicator.pid in case it changed
Dec 24 19:27:28 proxy systemd[1]: http-replicator.service operation timed
out. Terminating.
Dec 24 19:27:28 proxy systemd[1]: Stopping watch for
http-replicator.service's PID file /var/run/http-replicator.pid
Dec 24 19:27:28 proxy systemd[1]: http-replicator.service changed start ->
final-sigterm
Dec 24 19:27:28 proxy systemd[1]: http-replicator.service: cgroup is empty
Dec 24 19:27:28 proxy systemd[1]: http-replicator.service changed
final-sigterm -> failed
Dec 24 19:27:28 proxy systemd[1]: Job http-replicator.service/start
finished, result=failed
Dec 24 19:27:28 proxy systemd[1]: Failed to start HTTP Replicator.
Dec 24 19:27:28 proxy systemd[1]: Unit http-replicator.service entered
failed state.
Any ideas on what's wrong?
[-- Attachment #2: Type: text/html, Size: 3242 bytes --]
next reply other threads:[~2013-12-24 8:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-24 8:30 Adam Carter [this message]
2013-12-24 13:57 ` [gentoo-user] systemd service file for http-replicator Tom Wijsman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAC=wYCGbzBbAcXNUZVMGgm=ML8bja9=x6w0pbtfZk-_-F=rFyw@mail.gmail.com' \
--to=adamcarter3@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox