PDA

View Full Version : Message: A start job is running for after.local.service



mikenash
01-May-2015, 15:57
Receiving thousands of messages stating: " A start job is running for after.local.service. "
Enabled after.local service and updated /etc/init.d/after.local.
#! /bin/sh
#
# Copyright (c) 2010 SuSE LINUX Products GmbH, Germany. All rights reserved.
#
# Author: Werner Fink, 2010
#
# /etc/init.d/after.local
#
# script with local commands to be executed from init after all scripts
# of a runlevel have been executed.
#
# Here you should add things, that should happen directly after
# runlevel has been reached.
#
HOME=/root
export HOME
/usr/bin/vncserver :1 -fg

smflood
01-May-2015, 16:35
On 01/05/2015 16:04, mikenash wrote:

> Receiving thousands of messages stating: " A start job is running for
> after.local.service. "
> Enabled after.local service and updated /etc/init.d/after.local.
> #! /bin/sh
> #
> # Copyright (c) 2010 SuSE LINUX Products GmbH, Germany. All rights
> reserved.
> #
> # Author: Werner Fink, 2010
> #
> # /etc/init.d/after.local
> #
> # script with local commands to be executed from init after all scripts
> # of a runlevel have been executed.
> #
> # Here you should add things, that should happen directly after
> # runlevel has been reached.
> #
> HOME=/root
> export HOME
> /usr/bin/vncserver :1 -fg

Which version of SUSE Linux Enterprise Server (SLES) are you using?
Please post the output from "cat /etc/*release".

HTH.
--
Simon
SUSE Knowledge Partner

------------------------------------------------------------------------
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.
------------------------------------------------------------------------

mikenash
01-May-2015, 16:56
Sorry about that. I am running Suse 12.

malcolmlewis
01-May-2015, 18:03
Sorry about that. I am running Suse 12.
Hi
You should be running a systemd service, have a read here and look at using the example;
https://wiki.archlinux.org/index.php/Vncserver

mikenash
01-May-2015, 19:23
Thank you Malcolm, I check this and see where I made my mistake.
I initially saw this file: /usr/lib/systemd/system/after-local.service and made the mistake that it was the service I needed.
I copied this to /usr/lib/systemd/system/after.local.service and all work well.
Thanks again.