Services not running after reboot when home folder changed

scmaruthi
Posts: 4
Joined: Sat Jul 23, 2011 12:29 pm

Services not running after reboot when home folder changed

Postby scmaruthi » Sat Jun 16, 2012 10:47 am

I have the Amahi Apps for DLNA, VNC and Transmission.
I use 2 Disk on the Amahi Server. One holds the OS and the other larger one contains all the data.
I had a drive failure on the OS disk and reinstalled Amahi on a new OS Disk.
This time I thought it would be better for me to keep the user home folders on 2nd Disk.
I used a usermod command I found on the internet.
I checked and found that all the files indeed moved to my desired location.
But then I checked in the Amahi Dash on the List of services and found that the none of installed Apps were running after a reboot. Builtin Amahi Service are running fine.
After many trials, I could not get them to start on boot. I had to manually start them each time. I guessed that the Apps may be referencing some old home folder location. So I reinstalled Amahi and moved the home folders first and then installed the Apps. But even now i'm unable to start these services on boot.

Can anyone tell me if there is some file that needs editing in Amahi when the home folder is changed.
Or is there some common setting/configuration file for Amahi Apps that need modification ?
Or any other solution to get the Apps' Services running normally again.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Services not running after reboot when home folder chang

Postby bigfoot65 » Sun Jun 17, 2012 4:35 pm

Not sure I understand. Did you reinstall the apps when you reinstalled the OS? Moving your home folders might be the cause of some apps not working, but would not affect all.

There are some apps that make use of the user folder its default location of /home/user. What apps are you referring to that need restarted?

To be honest, you are better off not moving the home folders to a different drive. If you are concerned about the disk going bad, suggest you make backups using something like Clonezilla.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

scmaruthi
Posts: 4
Joined: Sat Jul 23, 2011 12:29 pm

Re: Services not running after reboot when home folder chang

Postby scmaruthi » Mon Jun 18, 2012 5:01 am

I have reinstalled the apps :roll: . Its just that -Only the reinstalled App services do not start.
And secondly I am moving the home folder of all the users, not the home folder directly.
I changed the default home folder location in linux. So now when i create a new user, automatically it creates the home location at the Second Data Disk.

My Guess: It must be because there is some Amahi configuration file that is setup during initial install with the admin home location.
When I change the admin location to the new one using the linux command "usermod", the amahi Config file is not updated. This leads to reinstalled Apps not being started.
Maybe because of some dependency there.

When the disk failed last time some data was lost.
To avoid that situation I decided to move the user home folders.
But this results in the services not working.

The solution now for me would be

1. Something that ensures the services start up normally.
In Windows there is common Services application that allows us to see what service run and when.
Is there something similar that in Amahi for me to select the Apps that need to run on boot.

or

2. Someway to customize the Shared folders so as to select where the shared user folder is stored.
I know that i can simply create folders manually with each user name and set access accordingly.
But currently Amahi automatically does this for each new user in the system.
If the same effect could be achieved then it would solve my problem

I have always been taking backups of the 2nd Disk which contained data.
But I failed to realize last time that some data was being stored on the Amahi OS Disk.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Services not running after reboot when home folder chang

Postby bigfoot65 » Tue Jun 19, 2012 5:10 am

There are some parts and pieces of Amahi that probably do use the home folders. Moving them causes problems and it is not a recommended practice to move them.

However in your case, if you must put them on a different drive then I would recommend you using symlinks to connect things back together.

You can find guidance anywhere on the internet. What this will do is make a link from the home folders on the OS drive to the real files on your second disk. Ensure the permissions match and then you should be back in business.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 22 guests