home | list info | list archive | date index | thread index

[OCLUG-Tech] a couple (simple?) systemd questions

  i really should know this stuff, but ...

1) is there a way to make sure a service is the *last* service invoked
when going to multi-user mode? currently, i have:

  [Install]
  WantedBy=multi-user.target

just to make sure it's run, but for safety, i'd prefer it's the last
service run out of all of those.

2) i also want that service, once it completes, to reboot the machine.
other than simply adding a "reboot" command at the bottom of the
script, is there a systemd directive that specifies the same thing?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================