Starting program at boot

I recently moved from a long time user of Linux Mint to openSUSE 12.3 and love it. There are a few things that are different that I’m learning and some I haven’t learned yet.

I installed CrashPlan+ that I had before. As I did in the Debian based system I put “/etc/init.d/crashplan start” in “/etc/init.d/boot.local” but that doesn’t start it at boot. CrashPlan support said that on openSUSE I needed to run this command “sudo insserv /etc/init.d/crashplan” to get it to boot. That didn’t seem to work either.

Any suggestions how and where I can get this started at boot?

Thanks,
Clyde

Try:

sudo systemctl enable crashplan

Thanks, but that gave:

Failed to issue method call: Invalid argument

I looked up systemctl and “enable” doesn’t seem to be an option. I tried “start” instead, but that didn’t work either. I don’t know if crashplan is a service or a program.

A little more help, please.

Thanks,
Clyde

Where did you look it up?
Of course “enable” is a valid command, see systemctl

I tried “start” instead, but that didn’t work either. I don’t know if crashplan is a service or a program.

If it is in /etc/init.d it is a service normally, so maybe try:

sudo systemctl start crashplan.service

or

sudo systemctl enable crashplan.service

But normally it should work as well if you omit the “.service”.

A little more help, please.

Well, it could be of course that that init script is just incompatible with systemd.
In that case, the best thing would be to just create a systemd service file.
Could you post /etc/init.d/crashplan please?

Or have a look here for how to get /etc/init.d/boot.local to work:
https://forums.opensuse.org/blogs/jdmcdaniel3/systemd-using-after-local-script-opensuse-12-1-12-2-12-3-71/

I tried:

sudo systemctl enable crashplan.service

and got:

crashplan.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig crashplan on

It looks like it worked. I wonder if “not a native service” confused it and I had to add the “.service”.

BTW, I don’t know what Website I was looking at for systemctl. Maybe I just didn’t read enough. Sorry.

Thanks for your help,
Clyde

Yeah, right. You can only omit “.service” for native systemd units, but it’s needed for sysv init scripts. I always forget about that, sorry.

I haven’t rebooted yet, so that after-local idea may still be needed. That is good to know too.

Thanks,
Clyde

On 2013-10-26 19:26, LughClyde wrote:

> CrashPlan
> support said that on openSUSE I needed to run this command “sudo
> insserv /etc/init.d/crashplan” to get it to boot. That didn’t seem to
> work either.

Tell them that their information is obsolete, openSUSE no longer uses sysv.

“chkconfig crashplan” might work.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)