[systemd-devel] problem with service that uses bash loop
Michał Piotrowski
mkkp4x4 at gmail.com
Tue Mar 29 11:30:54 PDT 2011
Hi,
I've got a service
[Unit]
Description=lm_sensors for monitoring motherboard sensor values
After=syslog.target
[Service]
EnvironmentFile=/etc/sysconfig/lm_sensors
Type=oneshot
ExecStart=/bin/bash -c "for module in $BUS_MODULES $HWMON_MODULES; do
/sbin/modprobe $module >/dev/null 2>&1; done"
ExecStart=/usr/bin/sensors -s
[Install]
WantedBy=multi-user.target
It works well until I add
ExecStop=/bin/bash -c "for module in $HWMON_MODULES $BUS_MODULES; do
/sbin/modprobe -r $module >/dev/null 2>&1; done"
Is there some magical way in which I can make a simple loop in ExecStop?
systemd-20-2.fc15.x86_64
--
Best regards,
Michal
http://eventhorizon.pl/
More information about the systemd-devel
mailing list