linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Allin Cottrell <cottrell@wfu.edu>
To: linux-hotplug@vger.kernel.org
Subject: timing of *.service start-up
Date: Wed, 06 Jun 2012 14:22:19 +0000	[thread overview]
Message-ID: <alpine.LNX.2.01.1206061007440.737@waverley.dhcp.wfu.edu> (raw)

Using systemd-185 (kmod 8, kernel 3.3.7) I'm noticing that a 
few of my services are failing (sometimes, not perfectly 
predictably) at boot time. When the failures occur, a manual 
invocation of "systemctl restart <whatever>" always works fine 
to get the services going. So it seems there are some 
timing/race problems and I'd much appreciate any help with 
diagnosing them.

Take thinkfan for example. My unit
/etc/systemd/system/thinkfan.service looks like this:

[Unit]
Description=Thinkfan fan controller

[Service]
ExecStart=/usr/sbin/thinkfan -q -n -z

[Install]
WantedBy=multi-user.target

Sometimes thinkfan starts fine, but other times I'm seeing 
this sort of thing (extracted via journalctl):

systemd[1]: systemd 185 running in system mode.
udevd[60]: starting version 185
thinkfan[153]: thinkfan 0.7.3 starting...
thinkfan[153]: /sys/class/hwmon/hwmon2/device/pwm1_enable: \
  No such file or directory
systemd[1]: thinkfan.service: main process exited, \
  code=exited, status%4
systemd[1]: Unit thinkfan.service entered failed state.

-- 
Allin Cottrell
Department of Economics
Wake Forest University, NC


                 reply	other threads:[~2012-06-06 14:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=alpine.LNX.2.01.1206061007440.737@waverley.dhcp.wfu.edu \
    --to=cottrell@wfu.edu \
    --cc=linux-hotplug@vger.kernel.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).