The normal entries for a Sybase configured service has the image path as :
<Drive_and_Path>sqlsrvr.exe -sServerName -C
e.g.
c:\Sybase\ASE-15_0\bin\sqlsrvr.exe -sSYBASE -C
The -C tells the executable to look at the parameters as defined in the HKEY_LOCAL_MACHINE\SOFTWARE\SYBASE\Server\<ServerN ame>\Parameters key of the registry for it's startup parameters.
In this section there are Values named Arg0 to Arg
n of type REG_SZ which defines the normal parameters passed to the executable for startup.
The default 5 parameters are :
Arg0 = -d<fully qualified pathname to master.dat> e.g.
-dC:\Sybase\data\SYBASE_master.dat
Arg1 = -s<ServerName> e.g.
-sSYBASE
Arg2 = -e<fully qualified pathname to ErrorLog> e.g.
-eC:\Sybase\ASE-15_0\install\SYBASE.log
Arg3 = -i<Directory/Path where sql.ini resides> e.g.
-iC:\Sybase\ini
Arg4 = -M<Directory/Path where Shared Memory files are placed> e.g.
C:\Sybase\ASE-15_0
ASE requires minimum startup parameters like the servername and the location to the master device. If not specified it will default to "SYBASE". Keep this is mind if your server is named something else.
If you use srvany, you need to specify the full path to the executable, the parameters, and the startup path.
I would suggest that your parameters for the service includes at least the minimum parameters that a similar Sybase-created service has :
application=C:\sybase\ASE-12_0\bin\sqlsrvr.exe
appparameters=dC:\sybase\data\master.dat -sMYSERVER -eC:\sybase\ASE-12_0\install\MYSERVER.log -iC:\sybase\ini -MC:\sybase\ASE-12_0
appdirectory=C:\sybase\ASE-12_0\install
Don't forget to create a service for the backupserver as well ( You do plan on making backups, don't you ? ).
The executable for the backup server is :
application=<Same_Path_as_ASE>\bcksrvr.exe
appparameters=-SMYSERVER_BS -eC:\sybase\ASE-12_0\install\MYSERVER_BS.log -IC:\sybase\ini\sql.ini -MC:\sybase\ASE-12_0\bin\sybmbuf.exe -Lus_english -Jcp850
appdirectory=C:\sybase\ASE-12_0\install
The parameters are slightly different to ASE's. Note that the -L and -J are for Language and Character set, with the defaults for a Windoze installation as above. The -M indicates where the sybmultbuf executable is located.
The backup server is usually named the same as the ASE server, with "_BS" appended to the name.
Ensure you have it listed in the sql.ini file, and also make sure that it is added to the ASE's server list :
exec sp_addserver SYB_BACKUP, ASEnterprise, MYSERVER_BS
go
That should be it. Oh, do ensure that the Sybase user or user that starts the service does have EXPLICIT rights set to have full access to the path where the shared memory files are located. If not, ASE might refuse to start with an error indicating that it could not allocate a shared memory region, after you have allocated more than the default amount of memory to ASE.
After setting the rights, you might need to reboot the machine so that the Kernel can inherit the "new" rights for the path.
[sarcasm]
This is just one of the privileges you have when running Windows - you get to reboot your machines quite frequently.

[/sarcasm]