Asset Server on Ubuntu

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
(Removing all content from page)
m (Reverted edits by Joseph05408 (Talk); changed back to last version by Ryan scott)
Line 1: Line 1:
 +
The following changes got AS working on Ubuntu for me.  Your mileage may vary of course.
  
 +
The following patch will do the trick ([http://www.unifycommunity.com/wiki/images/9/9a/Unity_AS_Ubuntu.zip here's a zip of the patch]).
 +
 +
 +
<pre>
 +
<nowiki>
 +
 +
--- a/install.sh
 +
+++ b/install.sh
 +
@@ -118,12 +118,12 @@ fi
 +
 +
if [ -x /sbin/rc-update ] ; then # Gentoo
 +
/sbin/rc-update add unity_asset_server default
 +
-elif [ -x /sbin/update-rc.d ] ; then # Debian?
 +
- /sbin/update-rc.d unity_asset_server defaults 80
 +
+elif [ -x /usr/sbin/update-rc.d ] ; then # Debian?
 +
+ /usr/sbin/update-rc.d unity_asset_server defaults 80
 +
else # Assume redhat-ish
 +
/sbin/chkconfig --add unity_asset_server
 +
        /sbin/chkconfig unity_asset_server on
 +
fi
 +
 +
-$prefix/bin/reset_admin_password
 +
+#$prefix/bin/reset_admin_password
 +
 +
index a1039ef..363357b 100755
 +
--- a/unity_build/unity_asset_server.sysvinit
 +
+++ b/unity_build/unity_asset_server.sysvinit
 +
@@ -7,13 +7,13 @@
 +
# config: /opt/unity_asset_server/data/postgresql.conf
 +
 +
# Source function library.
 +
-. /etc/init.d/functions
 +
+#. /etc/init.d/functions
 +
 +
# Source networking configuration.
 +
-. /etc/sysconfig/network
 +
+#. /etc/sysconfig/network
 +
 +
# Check that networking is up.
 +
-[ X\${NETWORKING} = Xno ] && exit 0
 +
+#[ X\${NETWORKING} = Xno ] && exit 0
 +
 +
##
 +
# UnityAssetServer startup script
 +
@@ -75,7 +75,7 @@ start () {
 +
if [ $RETVAL -eq 0 ]; then
 +
echo_success
 +
echo
 +
- touch /var/lock/subsys/unity_asset_server
 +
+ touch /var/lock/unity_asset_server
 +
else
 +
echo_failure
 +
echo
 +
@@ -89,7 +89,7 @@ stop () {
 +
RETVAL=$?
 +
if [ $RETVAL = 0 ]; then
 +
        echo_success
 +
- rm -f /var/lock/subsys/unity_asset_server
 +
+ rm -f /var/lock/unity_asset_server
 +
else
 +
echo_failure
 +
fi
 +
@@ -122,7 +122,7 @@ case "$1" in
 +
restart
 +
;;
 +
  *)
 +
- echo "Usage: jabberd {start|stop|status|restart}"
 +
+ echo "Usage: unity_asset_server {start|stop|status|restart}"
 +
exit 1
 +
esac
 +
 +
</nowiki>
 +
</pre>

Revision as of 19:27, 19 October 2009

The following changes got AS working on Ubuntu for me. Your mileage may vary of course.

The following patch will do the trick (here's a zip of the patch).




--- a/install.sh
+++ b/install.sh
@@ -118,12 +118,12 @@ fi
 
 if [ -x /sbin/rc-update ] ; then # Gentoo
 	/sbin/rc-update add unity_asset_server default
-elif [ -x /sbin/update-rc.d ] ; then # Debian?
-	/sbin/update-rc.d unity_asset_server defaults 80
+elif [ -x /usr/sbin/update-rc.d ] ; then # Debian?
+	/usr/sbin/update-rc.d unity_asset_server defaults 80
 else # Assume redhat-ish
 	/sbin/chkconfig --add unity_asset_server
         /sbin/chkconfig unity_asset_server on
 fi
 
-$prefix/bin/reset_admin_password
+#$prefix/bin/reset_admin_password
 
index a1039ef..363357b 100755
--- a/unity_build/unity_asset_server.sysvinit
+++ b/unity_build/unity_asset_server.sysvinit
@@ -7,13 +7,13 @@
 # config: /opt/unity_asset_server/data/postgresql.conf
 
 # Source function library.
-. /etc/init.d/functions
+#. /etc/init.d/functions
 
 # Source networking configuration.
-. /etc/sysconfig/network
+#. /etc/sysconfig/network
 
 # Check that networking is up.
-[ X\${NETWORKING} = Xno ] && exit 0
+#[ X\${NETWORKING} = Xno ] && exit 0
 
 ##
 # UnityAssetServer startup script
@@ -75,7 +75,7 @@ start () {
 	if [ $RETVAL -eq 0 ]; then
 		echo_success
 		echo
-		touch /var/lock/subsys/unity_asset_server
+		touch /var/lock/unity_asset_server
 	else
		echo_failure
 		echo
@@ -89,7 +89,7 @@ stop () {
 	RETVAL=$?
 	if [ $RETVAL = 0 ]; then
         echo_success
-		rm -f /var/lock/subsys/unity_asset_server
+		rm -f /var/lock/unity_asset_server
 	else
 		echo_failure
 	fi
@@ -122,7 +122,7 @@ case "$1" in
 	restart
 	;;
   *)
-	echo "Usage: jabberd {start|stop|status|restart}"
+	echo "Usage: unity_asset_server {start|stop|status|restart}"
 	exit 1
 esac


Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox