It is currently Sun May 26, 2013 1:15 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Autostarting Tonido on Ubuntu 10.10 before login [SOLVED]
PostPosted: Tue Apr 26, 2011 8:35 am 
Rookie Tonidoid
Rookie Tonidoid
Joined: Tue Apr 26, 2011 8:04 am
Posts: 8

Tonido running great on Ubuntu 10.10 (desktop) but will only autostart when a user logs in. I'd ideally like Tonido to start without any human interaction when the machine itself boots.

I've read the various posts here: viewtopic.php?f=14&t=607
and here: viewtopic.php?f=14&t=2597&p=13138&hilit=ubuntu#p13138

..but the requirment's there were different.

Any suggestions greatly appreciated.


Last edited by mysterion on Tue May 03, 2011 6:15 am, edited 1 time in total.

Offline
 Profile  
 Post subject: Re: Autostarting Tonido on Ubuntu 10.10 before login
PostPosted: Tue Apr 26, 2011 2:21 pm 
Tonido Team
Tonido Team
Joined: Wed Jan 28, 2009 11:30 pm
Posts: 1353

If you add the tonido start routine to /etc/init.d, it should start without user login.
Did you try that?


Offline
 Profile  
 Post subject: Re: Autostarting Tonido on Ubuntu 10.10 before login
PostPosted: Wed Apr 27, 2011 3:41 am 
Rookie Tonidoid
Rookie Tonidoid
Joined: Tue Apr 26, 2011 8:04 am
Posts: 8

Thank you for the reply Tuxedo,

Yes in etc/init.d/tonido.sh I've got the following:

#!/bin/sh -e
sleep 10
exec /usr/local/tonido/tonidostart.sh

...but unless I actually login, I'm getting "Tonido Service Unavailable".


Offline
 Profile  
 Post subject: Re: Autostarting Tonido on Ubuntu 10.10 before login
PostPosted: Wed Apr 27, 2011 8:42 am 
Admin Tonidoid
Admin Tonidoid
User avatar
Joined: Tue Dec 30, 2008 12:13 am
Posts: 7314
Location: Dallas, USA

When you open the login screen, do you just enter the password or do you select a profile and then enter the password.

Normally, if Tonido starts it should login into your account whether you login or not via the UI.


Offline
 Profile  
 Post subject: Re: Autostarting Tonido on Ubuntu 10.10 before login
PostPosted: Wed Apr 27, 2011 9:02 am 
Rookie Tonidoid
Rookie Tonidoid
Joined: Tue Apr 26, 2011 8:04 am
Posts: 8

Thanks for the reply madhan, and that's a good question. I've done some more testing and here's the situation:

1. I boot the server but don't login directly.
Accessing the server via webmin I can see that tonido is NOT a running process at this point.

2. If I then Login in as a normal user Tonido does not start autmoatically.

3. If I finally login as root Tonido DOES start automatically and appears as you would expect as a running process.
( 2829 root 14:55 /bin/sh -e /usr/local/tonido/tonidostart.sh)

Tonido therefore appears to be owned by root and only seems to start if I actually physically login as root.

Where to from here?


Offline
 Profile  
 Post subject: Re: Autostarting Tonido on Ubuntu 10.10 before login
PostPosted: Thu Apr 28, 2011 2:00 pm 
Rookie Tonidoid
Rookie Tonidoid
Joined: Tue Apr 26, 2011 8:04 am
Posts: 8

Hi folks, I'd really appreciate suggestions on this one.


Offline
 Profile  
 Post subject: Re: Autostarting Tonido on Ubuntu 10.10 before login
PostPosted: Thu Apr 28, 2011 2:25 pm 
Admin Tonidoid
Admin Tonidoid
User avatar
Joined: Tue Dec 30, 2008 12:13 am
Posts: 7314
Location: Dallas, USA

I guess the root of the problem is that your startup script is not being executed until you login as a "root". I think that is the issue here. Toindo will start as long as the right startup script calls it during boot up.


Offline
 Profile  
 Post subject: Re: Autostarting Tonido on Ubuntu 10.10 before login
PostPosted: Thu Apr 28, 2011 2:44 pm 
Rookie Tonidoid
Rookie Tonidoid
Joined: Tue Apr 26, 2011 8:04 am
Posts: 8

Thanks madhan. You've restated my problem perfectly. So how do I fix this? I thought all scripts in the etc/init,d were owned by root anyway so I'm not sure what I need to change


Offline
 Profile  
 Post subject: Re: Autostarting Tonido on Ubuntu 10.10 before login
PostPosted: Sat Apr 30, 2011 10:09 am 
Tonido Team
Tonido Team
Joined: Wed Jan 28, 2009 11:30 pm
Posts: 1353

Ok...mysterion, lets try to get the startup calls right.
I think the problem is because of tonidostart.sh. This script tries to start a process tonidogtk which can work only when it is attached to an UI.
You can try these steps to start the non-gui version of tonido.

1) You should have a file called tonido.sh in your tonido installation directory. (I am going to assume the installation directory as /usr/local/tonido. Please update these instructions as per your installation directory)
Code:
 # cp /usr/local/tonido/tonido.sh /etc/init.d/tonido


2) Edit the copied file /etc/init.d/tonido and change the following value.
From
Code:
TONIDODIR=`dirname $0`
To
Code:
TONIDODIR=/usr/local/tonido
After making this change, save the file.

3) Add the script to startup routines.
Code:
 # update-rc.d tonido defaults


4) Now try restart your system. Tonido should start automatically. The only thing you won't see is the icon on the taskbar because it is not attached to a GUI anymore.


Offline
 Profile  
 Post subject: Re: Autostarting Tonido on Ubuntu 10.10 before login
PostPosted: Sat Apr 30, 2011 12:27 pm 
Rookie Tonidoid
Rookie Tonidoid
Joined: Tue Apr 26, 2011 8:04 am
Posts: 8

Tuxedo, thank you so much for taking the time to detail these steps. I'll try it out on Monday when I'm next in the office and report back.

Thanks again


Offline
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours [ DST ]


 Who is online

Users browsing this forum: bogo-mipps and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: