Lines Matching refs:service

9     rm -f  /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME".service
10 rm -fr /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME".service.d
11 rm -fr /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME".service.{wants,requires}
13 systemctl stop "$SERVICE_NAME"*.service 2>/dev/null || :
14 rm -f /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME"*.service
15 rm -fr /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME"*.service.d
16 rm -fr /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME"*.service.{wants,requires}
31 cat >/etc/systemd/system/"$SERVICE_NAME".service <<EOF
38 mkdir -p /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME".service.{d,wants,requires}
64 ln -s ../test15-b.service /etc/systemd/system/test15-a.service.wants/
65 ln -s ../test15-c.service /etc/systemd/system/test15-b.service.wants/
66 check_ok test15-a Wants test15-b.service
67 check_ok test15-b Wants test15-c.service
71 ln -s ../test15-b.service /etc/systemd/system/test15-a.service.wants/
72 ln -s ../test15-b.service /etc/systemd/system/test15-a.service.requires/
73 check_ok test15-a Wants test15-b.service
74 check_ok test15-a Requires test15-b.service
78 ln -s ../nonexistent.service /etc/systemd/system/test15-a.service.wants/
79 check_ok test15-a Wants nonexistent.service
84 ln -sf ../nonexistent.service /etc/systemd/system/test15-a.service.requires/
86 check_ok test15-a Requires nonexistent.service
91 ln -sf ../test15-b.service /etc/systemd/system/test15-a.service.requires/
92 ln -sf ../test15-b.service /etc/systemd/system/test15-c.service.requires/
94 check_ok test15-c Requires test15-b.service
100 ln -sf test15-c.service /etc/systemd/system/test15-c1.service
101 ln -sf ../test15-c.service /etc/systemd/system/test15-a.service.wants/
102 ln -sf ../test15-c1.service /etc/systemd/system/test15-b.service.wants/
104 check_ok test15-a Wants test15-c.service
105 check_ok test15-b Wants test15-c.service
112 mkdir -p /usr/lib/systemd/system/service.d
113 cat >/usr/lib/systemd/system/service.d/override.conf <<EOF
120 rm -rf /usr/lib/systemd/system/service.d
130 mv /etc/systemd/system/test15-a.service /
131 ln -s /test15-a.service /etc/systemd/system/
132 ln -s test15-a.service /etc/systemd/system/test15-b.service
134 check_ok test15-a Names test15-a.service
135 check_ok test15-a Names test15-b.service
139 mv /test15-a.service /test15-a@.scope
140 ln -fs /test15-a@.scope /etc/systemd/system/test15-a.service
143 check_ok test15-a Names test15-a.service
144 check_ok test15-a Names test15-b.service
157 ln -s test15-a@inst.service /etc/systemd/system/test15-b@inst.service # alias
159 check_ok test15-a@inst Names test15-a@inst.service
160 check_ok test15-a@inst Names test15-b@inst.service
162 check_ok test15-a@other Names test15-a@other.service
163 check_ko test15-a@other Names test15-b@other.service
169 check_ok test15-b@inst Names test15-a@inst.service
170 check_ok test15-b@inst Names test15-b@inst.service
172 check_ko test15-b@other Names test15-a@other.service
173 check_ok test15-b@other Names test15-b@other.service
187 for dropin in service.d a-.service.d a-b-.service.d a-b-c.service.d; do
196 for dropin in service.d a-.service.d a-b-.service.d a-b-c.service.d; do
209 cat >>/etc/systemd/system/bar@.service <<EOF
214 cat >>/etc/systemd/system/yup@.service <<EOF
219 ln -s /etc/systemd/system/bar@.service /etc/systemd/system/foo.service.wants/bar@1.service
220 check_ok foo Wants bar@1.service
223 ln -s bar@.service /etc/systemd/system/bar-alias@.service
224 ln -s bar@1.service /etc/systemd/system/bar-alias@1.service
225 ln -s yup@.service /etc/systemd/system/bar-alias@2.service
226 ln -s yup@3.service /etc/systemd/system/bar-alias@3.service
229 mkdir -p /etc/systemd/system/bar@{,0,1,2,3}.service.requires/
230 mkdir -p /etc/systemd/system/yup@{,0,1,2,3}.service.requires/
231 mkdir -p /etc/systemd/system/bar-alias@{,0,1,2,3}.service.requires/
233 ln -s ../bar-template-requires.device /etc/systemd/system/bar@.service.requires/
234 ln -s ../bar-0-requires.device /etc/systemd/system/bar@0.service.requires/
235 ln -s ../bar-1-requires.device /etc/systemd/system/bar@1.service.requires/
236 ln -s ../bar-2-requires.device /etc/systemd/system/bar@2.service.requires/
237 ln -s ../bar-3-requires.device /etc/systemd/system/bar@3.service.requires/
239 ln -s ../yup-template-requires.device /etc/systemd/system/yup@.service.requires/
240 ln -s ../yup-0-requires.device /etc/systemd/system/yup@0.service.requires/
241 ln -s ../yup-1-requires.device /etc/systemd/system/yup@1.service.requires/
242 ln -s ../yup-2-requires.device /etc/systemd/system/yup@2.service.requires/
243 ln -s ../yup-3-requires.device /etc/systemd/system/yup@3.service.requires/
245 ln -s ../bar-alias-template-requires.device /etc/systemd/system/bar-alias@.service.requires/
246 ln -s ../bar-alias-0-requires.device /etc/systemd/system/bar-alias@0.service.requires/
247 ln -s ../bar-alias-1-requires.device /etc/systemd/system/bar-alias@1.service.requires/
248 ln -s ../bar-alias-2-requires.device /etc/systemd/system/bar-alias@2.service.requires/
249 ln -s ../bar-alias-3-requires.device /etc/systemd/system/bar-alias@3.service.requires/
357 ln -sf test15-b.service /etc/systemd/system/test15-b1.service
358 ln -sf ../test15-b1.service /etc/systemd/system/test15-a.service.wants/
359 check_ok test15-a Wants test15-b.service
363 rm /etc/systemd/system/test15-b1.service
369 mkdir -p /etc/systemd/system/test15-a1.service.wants/
370 ln -sf test15-a.service /etc/systemd/system/test15-a1.service
371 ln -sf ../test15-x.service /etc/systemd/system/test15-a.service.wants/
372 ln -sf ../test15-y.service /etc/systemd/system/test15-a1.service.wants/
373 check_ok test15-a1 Wants test15-x.service # see [1]
374 check_ok test15-a1 Wants test15-y.service
376 check_ok test15-a1 Wants test15-x.service # see [2]
377 check_ok test15-a1 Wants test15-y.service
379 rm /etc/systemd/system/test15-a1.service
391 ln -sf /dev/null /etc/systemd/system/test15-a.service.wants/test15-b.service
392 ln -sf /dev/null /etc/systemd/system/test15-a.service.requires/test15-b.service
393 check_ko test15-a Wants test15-b.service
394 check_ko test15-a Requires test15-b.service
398 ln -sf ../test15-b.service /etc/systemd/system/test15-a.service.wants/test15-b.service
399 ln -sf /dev/null /usr/lib/systemd/system/test15-a.service.wants/test15-b.service
400 check_ok test15-a Wants test15-b.service
404 ln -sf /dev/null /etc/systemd/system/test15-a.service.wants/test15-b.service
405 ln -sf ../test15-b.service /usr/lib/systemd/system/test15-a.service.wants/test15-b.service
406 check_ko test15-a Wants test15-b.service
411 ln -sf /dev/null /etc/systemd/system/test15-a.service
412 cat >/usr/lib/systemd/system/test15-a.service.d/override.conf <<EOF
414 After=test15-b.service
421 ln -sf test15-b.service /etc/systemd/system/test15-b1.service
422 ln -sf /dev/null /etc/systemd/system/test15-a.service.wants/test15-b.service
423 ln -sf ../test15-b1.service /usr/lib/systemd/system/test15-a.service.wants/test15-b1.service
428 check_ok test15-a Wants test15-b.service
429 check_ko test15-a Wants test15-b1.service # the alias does not show up in the list of units
430 rm /etc/systemd/system/test15-b1.service
435 ln -sf test15-b.service /etc/systemd/system/test15-b1.service
436 ln -sf /dev/null /etc/systemd/system/test15-a.service.wants/test15-b1.service
437 ln -sf ../test15-b.service /usr/lib/systemd/system/test15-a.service.wants/test15-b.service
438 check_ok test15-a Wants test15-b.service
439 check_ko test15-a Wants test15-b1.service # the alias does not show up in the list of units
440 rm /etc/systemd/system/test15-b1.service
446 ln -sf /dev/null /etc/systemd/system/test15-a.service.wants/test15-b.service
447 cat >/usr/lib/systemd/system/test15-a.service.d/wants-b.conf<<EOF
449 Wants=test15-b.service
451 check_ok test15-a Wants test15-b.service
456 ln -sf /dev/null /etc/systemd/system/test15-a.service.requires/nonexistent.service
457 ln -sf ../nonexistent.service /usr/lib/systemd/system/test15-a.service.requires/
458 check_ko test15-a Requires nonexistent.service
464 ln -sf ../test15-b.service /etc/systemd/system/test15-a.service.requires/
465 ln -sf ../test15-b.service /run/systemd/system/test15-c.service.requires/
466 ln -sf /dev/null /etc/systemd/system/test15-c.service.requires/test15-b.service
468 check_ko test15-c Requires test15-b.service
475 ln -sf ../test15-b.service /etc/systemd/system/test15-a.service.requires/
476 ln -sf ../test15-b.service /etc/systemd/system/test15-c.service.requires/
477 ln -sf /dev/null /run/systemd/system/test15-c.service.requires/test15-b.service
479 check_ok test15-c Requires test15-b.service
485 ln -sf test15-b.service /etc/systemd/system/test15-b1.service
486 ln -sf test15-b.service /etc/systemd/system/test15-b2.service
487 ln -sf /dev/null /etc/systemd/system/test15-a.service.requires/test15-b1.service
488 ln -sf ../test15-b1.service /run/systemd/system/test15-a.service.requires/
489 ln -sf ../test15-b2.service /usr/lib/systemd/system/test15-a.service.requires/
495 ln -sf test15-b.service /etc/systemd/system/test15-b1.service
496 ln -sf test15-b.service /etc/systemd/system/test15-b2.service
497 ln -sf ../test15-b1.service /run/systemd/system/test15-a.service.requires/
498 ln -sf ../test15-b2.service /usr/lib/systemd/system/test15-a.service.requires/
499 ln -sf /dev/null /etc/systemd/system/test15-a.service.requires/test15-b.service
508 systemctl cat nonexistent@.service || true
512 systemctl cat a@.service || true
522 rmdir /{etc,run,usr/lib}/systemd/system/test15-a.service.d
524 ln -s /tmp/testsuite-15-test15-a-dropin-directory /etc/systemd/system/test15-a.service.d
529 …n -s /tmp/testsuite-15-test15-a-dropin-directory-nonexistent /run/systemd/system/test15-a.service.d
531 …n -s /tmp/testsuite-15-test15-a-dropin-directory-regular /usr/lib/systemd/system/test15-a.service.d