COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > NINJAM Discussion > NINJAM Developer Discussion

Reply
 
Thread Tools Display Modes
Old 08-17-2005, 03:52 PM   #1
megastep
Human being with feelings
 
Join Date: Aug 2005
Location: Los Angeles, CA
Posts: 1
Default PATCH: Daemon mode and Linux system service for the server

Hi all,

I just discovered NINJAM yesterday, and I was trying to set up a server on my own Linux machine. I thought the current server was not very much Unix-like, so as I had a few spare cycles I took the time to write a SysV init script for it, as well as patching the code to allow it to detach from the terminal and running in the background like any regular Unix service. I added the '=daemon' command-line option for this purpose, but haven't bothered adding a config file item for it yet.

I also patched the Makefile so that "make install" installs the necessary files. I have slightly changed the example.cfg to make it more suitable for a Linux server.

You can then just edit the config file in /usr/local/etc/ninjamsrv.cfg and subsequently manage the daemon by using the following commands :

service ninjamsrv start
service ninjamsrv stop

etc... Commands supported also include: restart, reload, status. It integrates the script in the system initalization so you can use ntsysv or any other system administration tool for this to make sure that it is loaded on bootup, etc.

Anyway, I hope this helps. Cool piece of software, I'm looking forward to jamming more with it!

PS: Diff against the currently posted 0.2 tarball attached to this post.
Attached Files
File Type: txt ninjam.diff.txt (8.0 KB, 1058 views)
__________________
Stephane
megastep is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.