Commit 882428d3 authored by Andrew Lee's avatar Andrew Lee

Added systemd obsworker@.service file. (Closes:#853161)

Signed-off-by: Andrew Lee's avatarAndrew Lee (李健秋) <>
parent c896f81f
# systemd stuff
debian/systemd/obsworker@.service /lib/systemd/system/
Description=OBS worker for %i
ExecStartPre=/bin/mkdir -p /var/cache/build/root_%i
ExecStartPre=/bin/mkdir -p /var/cache/build/state_%i
ExecStartPre=/bin/chmod 755 /var/cache/build/root_%i
ExecStartPre=/bin/chmod 755 /var/cache/build/state_%i
ExecStartPre=/bin/mkdir -p /var/cache/build/boot
ExecStartPre=/bin/chown obsworker.obsworker /var/cache/build/boot
ExecStartPre=(cd /var/cache/build/boot && /usr/bin/curl -s "http://$OBS_SERVER:5252/getworkercode" | /bin/cpio --quiet --extract && /bin/ln -s . XML)
ExecStart=/var/cache/build/boot/bs_worker --hardstatus --root /var/cache/build/root_%i --statedir /var/cache/build/state_%i --id `hostname`:%i --reposerver http://${OBS_REPO_SERVERS} --jobs $OBS_WORKER_JOBS &
ExecReload=/bin/kill -HUP $MAINPID
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment