Debian :: How To Automate A Service

Apr 6, 2011

i am trying to automate a service but i dont know how to do it. I am automating a library system and there are services that have to start at the startup (during boot). How will i make this service to run at the startup in debian?

View 1 Replies


ADVERTISEMENT

Debian Programming :: Automate Command Line At Start-up

Jan 26, 2015

I'm trying to automate two command lines, a synclient and a syndaemon. They both work well if I type them manually in a terminal, but if I do a littre script to do this, tap to click and scrolling don't work anymore.

This is the script I wrote:
Code: Select all#!/bin/bash
synclient VertEdgeScroll=1
syndaemon -d -t -K
exit 0

So I made a chmod +x on the file, placed it in ~/bin then change PATH to include the directory. Then I added this file in "Startup applications".

The scripts run ok, mais it has a different effect than if I run the commands manually.

View 10 Replies View Related

Ubuntu Servers :: Perform An Action Before A Service Starts And After A Service Stops

Sep 10, 2010

I am running Server 10. I have a requirement to perform an action before the MySQL service starts, and perform another action after MySQL service stops.

I found the init script for MySQL under /etc/init/mysql.conf. I added my thing to the pre-start script there and works fine.

I am having trouble finding the script that stops the server so I can modify.

View 1 Replies View Related

General :: Will Command Service Httpd Restart Apache Service?

Dec 25, 2009

will the command service httpd restart the apache service if i enable httpsd service in graphical mode

View 12 Replies View Related

Red Hat / Fedora :: Shows Unrecognized Service After Restart Service Smb

Feb 28, 2010

i can smb in centos 5 and i run service smb restart, it shows :smb: unrecognized service..... i run rpm -qa |grep samba,it shows

samba-common-3.0.33-3.7.el5
samba-client-3.0.33-3.7.el5
.....

View 2 Replies View Related

Debian :: Service At Boot / Startup

Mar 1, 2016

I wanna know why the services ssh & mpd don't run at system boot / startup ?

I am under Debian Jessie 8 Stable , my uniques repos are : main contrib non-free

I don't use extra repositories.

i try installing , and rebooting , and dont work , after I try

First i stop and disable it :
Code: Select allsudo systemctl stop ssh.service ; sudo systemctl disable ssh.service ;
sudo systemctl stop sshd.socket ; sudo systemctl disable sshd.stop

# This dont make anything :
Code: Select allsudo systemctl stop mpd.service ; sudo systemctl stop mpd.service

[Code] ....

View 4 Replies View Related

Debian Configuration :: Dns Service For Email?

Jul 27, 2010

I want to install a email server so my domain handles it's on email. I understand I need a dns server first. I down loaded dbndns but can not even figure out how to start it. does anyone know how to get this set up. Or where the setup files is for this.

View 2 Replies View Related

Debian :: Backports Service Becoming Official?

Sep 7, 2010

The Debian Project is proud to announce that the backports service, previously available at [URL].. is now an official Debian service and will be available from backports.debian.org Backports are packages from the testing distribution recompiled for the current stable (or even oldstable) to provide users of the stable distribution with new versions of some packages, like the Linux kernel, the Iceweasel browser or the OpenOffice.org suite, without sacrificing the general stability of the system.

The archive currently has packages backported for the Lenny distribution (how many?), but the infrastructure to accept packages for the upcoming Squeeze release is already in place, to allow Debian Installer images to configure the backports repository by default without generating errors on user systems. The service for Squeeze will be enabled at a later date, after the release.

Because of some limitations in the Debian Bug Tracking System, any bugs relevant to backported packages still have to be reported to the debian-backports list, which will now also move on lists.debian.org.

View 3 Replies View Related

Debian :: How To Install VPN Service Server

Sep 4, 2009

Debian Lenny, Stable: So I followed this procedure:

Step 1:

* Copy files to the /etc/openvpn/easy-rsa/ directory
sudo mkdir /etc/openvpn/easy-rsa/
sudo cp -R /usr/share/doc/openvpn/examples/easy-rsa/2.0/* /etc/openvpn/easy-rsa/

Step 2:

* Edit /etc/openvpn/easy-rsa/vars
sudo vi /etc/openvpn/easy-rsa/vars

Change these lines at the bottom so that they reflect your new CA.

export KEY_COUNTRY="US"
export KEY_PROVINCE="CA"
export KEY_CITY="SanFrancisco"

[code]....

I can login with my other machine to my server but wehen I start hte server it does not fail. seem sto work, but windows see nothing. How to give the passwords to my users?

View 7 Replies View Related

Debian :: Blueman Input Service Missing

Jul 16, 2015

I'm a recent convert from Linux Mint to Debian for use with an HTPC media center.

I've been using Kodi + Playstation BD Remote for some time successfully with Mint.

I'm having issues getting the remote to work under Debian.

Typically I've been able to pair with Blueman and connect to the Input Service, however, under Debian, There are no "Input Serivce" options in the menus of Blueman..?

I don't know if this is because I'm missing some package that enables this or because my remote is not recognized as an input device. I suspect it is the former, because a bluetooth keyboard I have doesn't expose the "Input Service" menu option either.

View 0 Replies View Related

Debian :: Determine If An Service / App Is In Chrooted Jail

May 31, 2010

I am trying to find out, if an application is chrooted jail or not. I have tried to do as suggested here, but something is wrong I believe. [URL]

pidof apache2
24714 24404 24366 24365 24364 24363 24362 4923
ls -ld /proc/24714/root
lrwxrwxrwx 1 root root 0 May 31 19:05 /proc/24714/root -> /

So far so good. Now we try with postfix, ups, nothing to show ? pidof postfix Lets try with the postfix master process instead. pidof master 2623

ls -ld /proc/2623/root
lrwxrwxrwx 1 root root 0 May 31 19:07 /proc/2623/root -> /

It shows it as not being chrooted jail, which I do not understand, since I KNOW that postfix runs chrooted jail.

View 3 Replies View Related

Debian Configuration :: Systemd Custom Service

Aug 4, 2015

On macbook air 6.2, i've installed a Debian jessie mate DE, dual boot using refind. I'm currently fine-tuning it. I've made a script following powertop advice:

Code: Select all[newb@debian /etc/systemd/system]$ cat mba_kb_sp.sh
#!/bin/sh
echo 'auto' > '/sys/bus/usb/devices/1-3.1/power/control';
echo 'auto' > '/sys/bus/usb/devices/1-3.2/power/control';
echo 'auto' > '/sys/bus/usb/devices/1-5/power/control';
exit 0

[Code] ....

All seems to work fine, however when i check the sys file it didn't change. But I can start manually the systemd service and, this time, it works.

View 2 Replies View Related

Debian Configuration :: How To Enable Gdm3 Service

Mar 16, 2011

I have accidentally stoped gdm3 service with BootUP-Manager and now i cant enable it again. I can start it from terminal with sudo service gdm3 start i have tryed to dpkg-reconfigure gdm3 and purge/install. This are services running on startup [ + acpid

[ - ] anacron
[ + ] apache2
[ + ] atd

[code].....

View 3 Replies View Related

Debian Multimedia :: Minidlna Service Shuts Itself Down

Feb 24, 2015

I have minidlna installed and half the time I go to use it, the service has stopped and I have to manually restart it with "service minidlna restart". I haven't restarted the server to cause this. There is nothing in the log file in /var/log/minidlna.log

After watching a video, it stopped. If I don't look at it for a few days, it stops.

View 4 Replies View Related

Debian :: Start Service At Boot Time On 4?

Mar 10, 2010

I am using Debian4 and I have apache under /home/apache/bin/apachectl How to start the apachectl service for every time system restart, Itmust be start automatically. Please tell me how todo or how to write the script, how to configure forrun level 2,3 and 5

View 6 Replies View Related

Fedora :: Start A Service Before Network Service?

Nov 6, 2010

I need to start a service before network service How to?

View 1 Replies View Related

Debian :: Restore Default Runlevels Of Procps Service?

Oct 6, 2010

Is there a way to restore the default runlevels of procps service? I messed it up while experimenting..

View 1 Replies View Related

Debian Configuration :: Jessie - Service Samba Restart

Oct 20, 2014

I've after latest jessie update a problem with service samba restart. If I use "service samba restart", there is a timeout (after long time) and error.

Output of "systemctl status samba.service":

Code:
Select all● samba.service - LSB: ensure Samba daemons are started (nmbd and smbd)
   Loaded: loaded (/etc/init.d/samba)
   Active: failed (Result: timeout) since Mo 2014-10-20 02:16:57 CEST; 7s ago
  Process: 6205 ExecStart=/etc/init.d/samba start (code=killed, signal=TERM)

Okt 20 02:16:57 server systemd[1]: samba.service start operation timed out. Terminating.
Okt 20 02:16:57 server systemd[1]: Failed to start LSB: ensure Samba daemons are started (nmbd and smbd).

[Code] ....

Whats going wrong. "service samba restart" should bring no error message if the service is not running previously.

View 2 Replies View Related

Debian Configuration :: Jessie With XFCE - Service Fails

Feb 10, 2016

I am using Jessie with XFCE and I tried to write a service which executes a script to change my wallpaper. When I try to start the service with systemctl start wallpaper.service it fails and I get the outout below from systemctl status wallpaper.service

I don't think it to be a permissions issue, they are -rw- r-- r--

This service is called by a timer that goes off daily. Below is wallpaper.service

View 5 Replies View Related

Debian Configuration :: How To Service /var, /proc, /opt To Stay Out Of Troubles

Jan 26, 2010

HDD partitioned for novice - everything in one partition, in one folder /.

/dev/sda3117290636 38456100 72876432 35% /
tmpfs 103746010374600% /lib/init/rw
udev10240852 93889% /dev

[code]....

View 3 Replies View Related

Debian Configuration :: Service Settings Safe To Turn Off?

May 12, 2010

My system goes through slow periods where it just crawls and others where it's fine, but I'm wondering which service settings are OK to just shut off to give me a bit more oomph when I boot up.The others I'm pretty OK with like spam assassin, dictionary server and so on, but some of the others i wonder if they only serve to slow things down..Also..I live in a very dusty environment and I KNOW the fans and other parts get caked with dust and it wouldn't surprise me if the dust got so bad it just stops the fans completely so once in a while I use my air compressor to blow the crud out and I usually get covered myself, but how safe is using the compressor? It's not the type that typically fills up with condensed water droplets so that isn't a super critical issue..It's a small 1 hp deal, elect drive and so on.. Safe enough? It's all I have and/or can afford..

View 1 Replies View Related

Debian Hardware :: Bumblebeed Service Doesn't Start

May 9, 2014

I've installed bumblebee following this : URL...But i think bumblebeed daemon doesn't start.

if I do:
Code: Select all# service bumblebeed start
or
Code: Select all# service bumblebeed stop
or
Code: Select all# /etc/init.d/bumblebeed start
ecc.
i got no output. No errors... nothing.

but if I use another service it works...for example:

Code: Select all# /etc/init.d/network-manager start
[ ok ] Starting network connection manager: NetworkManager.

View 6 Replies View Related

Debian :: Default Service Start / Stop Priorities?

Jun 29, 2010

Service(init.d) scripts in Redhat have default start/stop priorities commented inside, like:

Code:
...
# chkconfig: 2345 25 90
...
Second number is start priority.

But debian does not include this info. Just in case service symlinks from all runlevels are removed how do I know which priority to specify?

View 1 Replies View Related

Debian Configuration :: Udev Script To Run Service On Device Insertion

Jan 24, 2010

I have just bought a DVB-T usb dongle to watch some TV. The software I'm using is vdr, which has to be started through the /etc/init.d/vdr service. I have created a udev script that executes the service on device insertion. It works nicely, however now when I boot up the computer it takes ages to get to desktop. I believe it is because of the WAIT_FOR part. But without this part, the service starts too soon because the usb dongle has been inserted but the firmware has not finished loading. Can someone point out an alternative way to do it? The script is here [URL].

View 4 Replies View Related

Debian Configuration :: Adding Router For Mail Service Function?

Jun 10, 2011

I'm building a Debian based router, I want to add to this router a mail service function. I don't want mail to be sent outside of the network, what I want is the ability for services to send mail to the Debian server and for me to then pick them up from this server via pop3 into my normal mail application. Given I'm not looking for mail to be sent outside of the network and its strictly for services to log notifications via. What of the various mail applications should I setup? i.e. just looking for SMTP + POP3 internally.

View 5 Replies View Related

Fedora :: How To Automate Eog Reload

Dec 5, 2010

eog notices when a PNG file changes, and offers to reload it.But it does not reload until I move the mouse over to the monitor where I stuck eog, and click ReloadHow can I make eog just reload automatically without asking -- the way evince does, for PDFs?

View 1 Replies View Related

Programming :: Automate Configuration Over RS-232?

Oct 18, 2010

Is it possible to make a script, which reads commands from a file one line after another, logs into a network device over a console connection(RS-232) and executes those commands wile sleeping 1s after each line? I have used minicom in order to connect over console line, but minicom is not scriptable as far as I know. There is a macro option, but this configuration file is almost 2000 lines long. Is such script possible at all?

View 7 Replies View Related

Debian Configuration :: How To Start And Stop Asterisk Service By Non Root User

Aug 25, 2011

I am using debian squeeze server with asterisk 1.6 installed and configured.my problem is non root users need to access the server using ssh and restart asterisk server after making changes in asterisk configuration files.As of now i am giving root username/password for this process (i know it is not at all a good idea) .now how can i create a username and configure it which can only access and modify asterisk configuration files and restart asterisk server without any other privileges.

View 1 Replies View Related

General :: Automate Backups Over SSH On A Desktop?

Jun 7, 2011

I currently have a setup which allows me to connect to all computers on my home network via SSH and RSA keys. I'm very security-conscious, so all of my keys are passphrase protected. I'd like to essentially set something up where I'm running Unison on a cron job to back up to a file server on my network, which we'll call timmy. I've noticed that the first time I try to use a key on my Ubuntu laptop teeks, I get a dialog which pops up asking me to type in my key passphrase. I've heard that for servers needing to make automated backups like this that one should use ssh-agent to ask for the key passphrase on login/server start. How can I set this up on teeks?

I'd essentially like to have the following happen:When I boot and come into the OS, prompt visually for the passphrase as is done when I first use a key.If I SSH into this computer (as it's internet-facing) and I haven't provided the SSH passphrase yet, then prompt for it. (Sometimes, I might need to remotely reboot the machine over SSH, so I'll be SSH'ing into it after it reboots and I'd like to be able to authenticate the key without having to VNC in and do it manually.)

View 2 Replies View Related

Red Hat / Fedora :: Automate Testing Of Web Login?

Jan 20, 2011

I am trying to automate testing of logon into a web application using "curl". as the first step i am doing below to see if i can login to the app from command linecurl --verbose --user usernameassword my.url.combut it does not seem to be working. from the output that i get it seems it only gets to the page where to enter my username/password. but does not get past that stage. below are the first few lines from the output

curl --verbose --user administrator my.url.com
Enter host password for user 'administrator':
* About to connect() to my.url.com port 7790

[code]...

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved