On Linux, I did it like this - works fine.
1. Stop crowd
2. useradd -c "Atlassian Crowd" crowd
3. chown -R crowd:root /opt/atlassian/crowd
4. chown -R crowd:root /var/atlassian/crowd
5. find /opt/atlassian/crowd -type d -exec chmod 750 {} \;
6. cd /opt/atlassian/crowd/atlassian-crowd-2.7.0
7. cp start_crowd.sh ORIG_start_crowd.sh
8. cp stop_crowd.sh ORIG_stop_crowd.sh
9. Edit start_crowd.sh. Replace with:
#!/bin/sh
PRGDIR=`dirname "$0"`
su -m crowd -c "$PRGDIR/apache-tomcat/bin/startup.sh $@"
10. Edit stop_crowd.sh
#!/bin/sh
PRGDIR=`dirname "$0"`
su -m crowd -c "$PRGDIR/apache-tomcat/bin/shutdown.sh $@"
11.Start crowd using start_crowd.sh
That's it. Easy.
On Linux, I did it like this - works fine.
1. Stop crowd
2. useradd -c "Atlassian Crowd" crowd
3. chown -R crowd:root /opt/atlassian/crowd
4. chown -R crowd:root /var/atlassian/crowd
5. find /opt/atlassian/crowd -type d -exec chmod 750 {} \;
6. cd /opt/atlassian/crowd/atlassian-crowd-2.7.0
7. cp start_crowd.sh ORIG_start_crowd.sh
8. cp stop_crowd.sh ORIG_stop_crowd.sh
9. Edit start_crowd.sh. Replace with:
#!/bin/sh
PRGDIR=`dirname "$0"`
su -m crowd -c "$PRGDIR/apache-tomcat/bin/startup.sh $@"
10. Edit stop_crowd.sh
#!/bin/sh
PRGDIR=`dirname "$0"`
su -m crowd -c "$PRGDIR/apache-tomcat/bin/shutdown.sh $@"
11.Start crowd using start_crowd.sh
That's it. Easy.