Hi everyone,
I'm trying to make diaspora start on boot. Here is the base command line :
I have two leads :
1. Using /etc/rc.local, but it does not working. I can see the boot is very long, but there is no process. I think this is because the script runs before mysql (which is required).
2. Making my own /usr/local/etc/rd.d/diaspora script, but I don't know if it's possible for a rc.d script to call another script. Here is what I tried :
Yes, I want this rc.d script to execute /home/diaspora/diaspora/script/server with diaspora user.
When I run
I admit, I'm stuck, can you help me?
Thanks.
I'm trying to make diaspora start on boot. Here is the base command line :
Code:
$ cd ~/diasporadir
$ ./script/server
I have two leads :
1. Using /etc/rc.local, but it does not working. I can see the boot is very long, but there is no process. I think this is because the script runs before mysql (which is required).
2. Making my own /usr/local/etc/rd.d/diaspora script, but I don't know if it's possible for a rc.d script to call another script. Here is what I tried :
Code:
#!/bin/sh
# PROVIDE: diaspora
# REQUIRE: mysql redis LOGIN
#
. /etc/rc.subr
name="diaspora"
diaspora_user=diaspora
command="/home/diaspora/diaspora/script/server"
start_cmd="diaspora_start"
diaspora_start()
{
su -l ${diaspora_user} -c ${command}
}
Yes, I want this rc.d script to execute /home/diaspora/diaspora/script/server with diaspora user.
When I run
/usr/local/etc/rc.d/diaspora start
, nothing happens at all.I admit, I'm stuck, can you help me?
Thanks.