Hello,

I'm trying to get my [email protected] to restart on failure (e.g.
when I remove my USB dock and then plug it back in). Despite putting
"Restart=always" in the service file, it always remains in the failed
state. I've attached `systemctl show dhpcd\@eth0.service` and
`systemctl status dhcpcd\@eth0.service` after unplugging the dock and
then plugging it back in. I appreciate any help.

-- 
- Patrick Donnelly
[email protected]
[email protected]
Requires=systemd-journald.socket basic.target
Wants=network.target
BindsTo=sys-subsystem-net-devices-eth0.device
WantedBy=multi-user.target
Conflicts=shutdown.target
Before=network.target shutdown.target multi-user.target
After=sys-subsystem-net-devices-eth0.device systemd-journald.socket basic.target
Description=dhcpcd on eth0
LoadState=loaded
ActiveState=failed
SubState=failed
FragmentPath=/root/system/[email protected]
UnitFileState=enabled
InactiveExitTimestamp=Sun 2013-02-24 20:16:16 EST
InactiveExitTimestampMonotonic=972610265
ActiveEnterTimestamp=Sun 2013-02-24 20:16:21 EST
ActiveEnterTimestampMonotonic=977568189
ActiveExitTimestamp=Sun 2013-02-24 20:25:04 EST
ActiveExitTimestampMonotonic=1500099934
InactiveEnterTimestamp=Sun 2013-02-24 20:25:04 EST
InactiveEnterTimestampMonotonic=1500205028
CanStart=yes
CanStop=yes
CanReload=no
CanIsolate=no
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=no
DefaultDependencies=yes
OnFailureIsolate=no
IgnoreOnIsolate=no
IgnoreOnSnapshot=no
DefaultControlGroup=name=systemd:/system/[email protected]/eth0
ControlGroup=cpu:/system/[email protected]/eth0 
name=systemd:/system/[email protected]/eth0
NeedDaemonReload=no
JobTimeoutUSec=0
ConditionTimestamp=Sun 2013-02-24 20:16:16 EST
ConditionTimestampMonotonic=972595367
ConditionResult=yes
Type=forking
Restart=always
PIDFile=/run/dhcpcd-eth0.pid
NotifyAccess=none
RestartUSec=100ms
TimeoutUSec=1min 30s
TimeoutStartUSec=1min 30s
TimeoutStopUSec=1min 30s
WatchdogUSec=0
WatchdogTimestampMonotonic=0
StartLimitInterval=10000000
StartLimitBurst=5
StartLimitAction=none
ExecStart={ path=/usr/sbin/dhcpcd ; argv[]=/usr/sbin/dhcpcd -q -w %I ; 
ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; 
status=0/0 }
ExecStop={ path=/usr/sbin/dhcpcd ; argv[]=/usr/sbin/dhcpcd -x %I ; 
ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; 
status=0/0 }
PermissionsStartOnly=no
RootDirectoryStartOnly=no
RemainAfterExit=no
GuessMainPID=yes
MainPID=0
ControlPID=0
Result=exit-code
UMask=0022
LimitCPU=18446744073709551615
LimitFSIZE=18446744073709551615
LimitDATA=18446744073709551615
LimitSTACK=18446744073709551615
LimitCORE=18446744073709551615
LimitRSS=18446744073709551615
LimitNOFILE=4096
LimitAS=18446744073709551615
LimitNPROC=29421
LimitMEMLOCK=65536
LimitLOCKS=18446744073709551615
LimitSIGPENDING=29421
LimitMSGQUEUE=819200
LimitNICE=0
LimitRTPRIO=0
LimitRTTIME=18446744073709551615
OOMScoreAdjust=0
Nice=0
IOScheduling=0
CPUSchedulingPolicy=0
CPUSchedulingPriority=0
TimerSlackNSec=50000
CPUSchedulingResetOnFork=no
NonBlocking=no
StandardInput=null
StandardOutput=journal
StandardError=inherit
TTYReset=no
TTYVHangup=no
TTYVTDisallocate=no
SyslogPriority=30
SyslogLevelPrefix=yes
SecureBits=0
CapabilityBoundingSet=18446744073709551615
MountFlags=0
PrivateTmp=no
PrivateNetwork=no
SameProcessGroup=no
ControlGroupModify=no
ControlGroupPersistent=no
IgnoreSIGPIPE=yes
NoNewPrivileges=no
KillMode=control-group
KillSignal=15
SendSIGKILL=yes
ExecMainStartTimestamp=Sun 2013-02-24 20:16:21 EST
ExecMainStartTimestampMonotonic=977568093
ExecMainExitTimestamp=Sun 2013-02-24 20:16:21 EST
ExecMainExitTimestampMonotonic=977568093
ExecMainPID=1114
ExecMainCode=1
ExecMainStatus=1

Attachment: [email protected]
Description: Binary data

[email protected] - dhcpcd on eth0
          Loaded: loaded (/root/system/[email protected]; enabled)
          Active: failed (Result: exit-code) since Sun 2013-02-24 20:25:04 EST; 
6min ago
        Main PID: 1114 (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/system/[email protected]/eth0

Feb 24 20:25:04 neverwinter dhcpcd[1114]: del_address: No such device
Feb 24 20:25:04 neverwinter dhcpcd[2045]: dhcpcd[2045]: sending signal 15 to 
pid 1114
Feb 24 20:25:04 neverwinter dhcpcd[2045]: dhcpcd[2045]: waiting for pid 1114 to 
exit
Feb 24 20:25:04 neverwinter dhcpcd[2045]: sending signal 15 to pid 1114
Feb 24 20:25:04 neverwinter dhcpcd[2045]: waiting for pid 1114 to exit
Feb 24 20:25:04 neverwinter dhcpcd[1114]: received SIGTERM, stopping
Feb 24 20:25:04 neverwinter dhcpcd[1114]: eth0: removing interface
Feb 24 20:25:04 neverwinter systemd[1]: [email protected]: main process 
exited, code=exited, status=1/FAILURE
Feb 24 20:25:04 neverwinter systemd[1]: Stopped dhcpcd on eth0.
Feb 24 20:25:04 neverwinter systemd[1]: Unit [email protected] entered failed 
state
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to