Ubuntu Servers :: Batch Job To Start/stop Transmission-daemon?
Mar 11, 2010
I would like to be able to simply run a shortcut file or batch file in a windows os to start or stop my transmission-daemon.I was thinking about using putty to auto login and execute a file using the -m switch. A problem I am running into is that /etc/init.d/transmission-daemon stoprequires the use of sudo.That would require entering a password which would be automated and insecure or would require manually typing int he password.
I've just installed subversion.I need to create a script /etc/init.d/svnserve that will start at boot time.I want to use start-stop-daemon --start so I can track my process and eventually kill it using start-stop-daemon --stop.My problem is that I can't get it to work and the documentation shows no exemple.
I've replaced $DAEMON by the whole line: svnserve -d -R -r $REPO_ROOT and got -d is not an option.I'm not quite sure what to do at that point. If someone has some experience with start-stop-daemon it would be great.
I have installed transmission on a headless server. I am using transmission-daemon and connects to the webclient on the LAN. However from WAN I can't connect. I have forwarded port 9091 in my router and it connects with the server, but I get 403: Forbidden.
I am having some trouble making the dropbox daemon start at boot. I followed these instructions -> [URL], which are basically a replica of the original instructions from the Dropbox Wiki [URL]. The installation went fine, except that the machine still cannot start the daemon at boot. I tried to modify the init.d script a bit (see the attachment), but it still wont work (I am not sure if my changes made any significant difference, though). The daemon will only start if I invoke it manually after login with the command:
Code:
[user@machine:~]$ service dropbox start
Which executes the daemon just fine. I also tried adding this line of code to crontab:
Code:
@reboot /etc/init.d/dropbox start
This command starts the daemon if I check with the command "service dropbox status", but if I execute the official dropbox CLI command:
Code:
~/bin/dropbox.py status
it says that Dropbox isn't running and I still have to execute it manually.
P.s.: The machine runs Ubuntu Server 10.04, with all the latest system patches and updates.
I just got the problem while starting the dhcp daemon. Its showing failed. I need to start it for my clients to be autoinstalled. I am having CentOS 5.2 linux. I've installed all optional packages also while installing CentOS. How to start the dhcp daemon? I've tried the /etc/init.d/dhcpd start also. But it didnt work. Showing Failed.
I am not able to start mysql server...when i type command sevice mysqld start it saysMySQL Daemon failed to start.Starting mysqld: [FAILED]so how to solve this problem ?
i installed transmission on my fedora14 VPS for headless usage by "yum install transmission transmission-daemon", problem comes when i try to configure the init.d Scrip for transmission-daemon to run as a different user instead of the pre-specified user �transmission�,how should i modify the default transmission-daemon file bellow?
I've installed transmission-daemon on my headless Ubuntu 11.04 server and use the web interface to manage it. This is all working fine. However, after a reboot it seems that transmission daemon starts but the webinterface is unavailable. I get this in the syslog after a reboot:
Code: Jun 22 10:54:27 localhost transmission-daemon[703]: Transmission 2.31 (12441) started (session.c:706) Jun 22 10:54:27 localhost transmission-daemon[703]: RPC Server Adding address to whitelist: 192.168.*.* (rpc-server.c:805) Jun 22 10:54:27 localhost transmission-daemon[703]: RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:982) Jun 22 10:54:27 localhost transmission-daemon[703]: RPC Server Whitelist enabled (rpc-server.c:986) Jun 22 10:54:27 localhost transmission-daemon[703]: RPC Server Password required (rpc-server.c:989) Jun 22 10:54:27 localhost transmission-daemon[703]: Port Forwarding Stopped (port-forwarding.c:181) Jun 22 10:54:27 localhost transmission-daemon[703]: UDP Failed to set receive buffer: requested 4194304, got 262142 (tr-udp.c:75) .....
I have the Shorewall firewall running on Ubuntu 10.10 server and the issue I am having is the firewall is blocking traffic from my transmission-daemon even though I have allowed it in the /etc/shorewall/rules.
as you can see, Shorewall is rejecting packets with source and destination port 51413 on incoming net2fw and outgoing fw2net even though the rules are set to accept.
I'm running Ubuntu 10.04 LTS and I have installed openssh.I need to find a way to configure it so that it never start up when I boot into my computer. The reason is: I haven't had the time yet to learn how to set it up and configure it correctly. Until that time comes I don't want it to run at all.Every single time I boot into the system and I have to do that first before I can even do what I really need to on the computer. It's annoying.Does anyone know the best and least complicated way to just make it not run at all until I'm ready to set it up properly?Also how to check what is running on my system after I boot up so I can double check, after making the changes, that it worked right.
I installed VSFTPD via: sudo gedit /etc/vsftpd.conf
I can start/stop using the following: sudo /etc/init.d/vsftpd start sudo /etc/init.d/vsftpd stop
By default, the daemon loads at boot but I don't want/need it to. I executed the following command thinking it would stop it from loading at boot code...
Can anyone tell me how to stop the VSFTPD daemon from loading at boot?
I am tring to stop avahi from starting and running at all.I use kill PID and killall avahi-daemon and it will not go away, it comes back with a new PID. Does anyone know a way of stopping it?
I can't seem to get transmission to boot up at start up. I read that I just needed to put "transmission -m" as the command in the start up window, but that doesn't seem to be working and I have no idea where the actual file resides to point to it
In my system I installed Oracle enterprise linux.while installing I installed Mysql also.
I checked the version which is 5.0.15
After my installation,I am installing Bugzilla 4.0.at that time it's showing below =========================================================== Checking for DBD-mysql (v4.00) found v3.0007
For MySQL, Bugzilla requires that perl's DBD::mysql 4.00 or later be installed. To install this module, run the following command (as root):
/usr/bin/perl install-module.pl DBD::mysql =========================================================== I ran below command #/usr/bin/perl install-module.pl DBD::mysql
Ideally I would love to have a script that watches my Home/Dropbox/Attachments folder for any torrent files. When there is a torrent file in the Attachments folder it will launch Transmission if it is not up already.But if not I can do it this way tooBasically what I somewhat have now is I'm trying to use Dropbox to start Transmission when I want it to.I have this script running every 3 minutes in Ubuntu Tweak to watch for any scripts I want to run from my Dropbox/remote/commands folder. Whenever a script gets placed in the commands folder it runs it. Which is this
I usually add torrents to transmission through my iPhone. I have Transmission watch the 'Attachments' folder in my Dropbox. I also have Transmission auto add the torrent and delete the torrent file when done. Thing is if I don't have Transmission running when I add the torrent to my dropbox folder. Transmission doesn't start up to download the torrent. Is there a script that can watch for torrent files in my Dropbox folder that I can run in Scheduled Tasks to run every 5 min or so. Also when I have it up and running and I do have auto add on. It auto adds it to transmission but then the popup dialog appears to ask if I just want to download one of the files from the torrent or all 10. Is there a way to bypass this?
I am trying to give access to ONE single user to start and shutdown tomcat server. The problem being, when I enter syntax: username ALL= /etc/init.d/tomcat5, /usr/local/tomcat/webapps, PASSWD:ALL This gives the user access to start and stop tomcat but also gives user access to start and stop other services within /etc/init.d - such as httpd etc... What is the proper way to give user access to start and stop service, and limiting that power to only one service....
I can only access the Transmission web interface while the Transmission-gtk client is running. When I close it, the web interface is no longer available. I try to manually start the transmission-daemon, but the process never shows up as running.
I'm creating a script that I want to run every time any user logs in (not only on the GUI, but also via SSH or via text terminal). The script will check if a daemon program is running (one per user or per session, haven't decided yet) and, if it isn't, will start it. I want this to be system-wide, not per-user. I thought about using /etc/profile (or creating a file in /etc/profile.d/) for CLI logins and /etc/X11/Xsession (same remark, Xsession.d) for GUI logins. My problem is that if the user uses a non-Bourne shell (e.g. TCSH) this won't work. Is there any initialization script that is run no matter what shell the user has?
Is there a way to send an email from a batch script. I want to send the output from a script to an email address, possibly a couple of email addresses depending on the output.