Hi,

I am making some modifications to Angstrom and I need to add a new timer to
systemd. Now my timer works fine when I start it manually using systemctl
but I just can't figure out how to get it to start auto-magically when
systemd brings all the other services online? Is the behaviour I am
expecting not what systemd timer units provide?

I have created some other standard services which initialise normally.

I am now considering just adding the "systemctl start myservice.timer" to
another startup script to drag it into existence.

Here is my bb if that is of any help.

All the best

Wayne

//-----------------------

inherit allarch systemd

SRC_URI = " \
file://myservice.service \
file://myservice.timer \
"

do_install () {
install -d ${D}/${base_libdir}/systemd/system

install -m 0644 ${WORKDIR}/myservice.service
${D}/${base_libdir}/systemd/system/
 install -m 0644 ${WORKDIR}/myservice.timer
${D}/${base_libdir}/systemd/system/
}

NATIVE_SYSTEMD_SUPPORT = "1"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "myservice.timer"

FILES_${PN} += "${base_libdir}/systemd"

//----------------------------
_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

Reply via email to