On Fri, 23.07.10 00:55, Rahul Sundaram (metherid(a)gmail.com) wrote:
On 07/23/2010 12:10 AM, Lennart Poettering wrote:
> Kay and I have discussed this now. We agreed to fold systemd-install
> into systemctl entirely, and replace --realize by --now. Also, we'll
> drop some of the options --realize had, and always imply that the init
> system configuration shall be reloaded after all changes took
> place. This basically means that this
> is what will be done in %post in the general case:
>
> if [ $1 -eq 1 ] ; then
> systemctl enable foo.service
> else
> systemctl daemon-reload
>
Is there a particular reason why systemctl enable foo shouldn't work?
why am I specifying foo.service there?
Well, because you mean the service, not the socket or the timer or any
other kind of unit?
Lennart
--
Lennart Poettering - Red Hat, Inc.