cron script: dovecot: unrecognized service

I'm using Let's Encrypt to generate SSL certificates automatically every 60-days using a simple shell script.

After the script has reloaded these it tries to reload my services using the commands I would type myself into a shell, i.e- service postfix reload and service dovecot reload.

However, while the first of these works just fine, the service dovecot reload does not work, complaining of an unrecognised service.

The script is being run as root as a cron-job, so I would expect it to recognise all the same services as when I'm logged in as root myself, yet for some reason dovecot is not recognised, but others are without issue, meaning I have to manually reload dovecot before the old certificates expire, kind of limiting the benefit of my script!

What is different about dovecot that would cause it to be unrecognised by my script, but be recognised without issue when I log in as root myself?

Replay

Category: shell script Time: 2016-07-30 Views: 0

Related post

  • dovecot: unrecognized service 2013-01-19

    have tried to installed dovecot 1.0.15 on Centos 4.6 ./configure --with-pam make make install It got installed without error However when I do [[email protected]~ ]# service dovecot start dovecot: unrecognized service When I do [[email protected]~ ]# # locate dovecot It giv

  • cron script for scheduled backups 2010-02-07

    i am looking for a cron script which can do some backups. im mostly a web developer so am kind of newbish with bash/cron stuff. i want cron will copy all the files or directories in a "filelist.txt" into a mounted network storage drive once per

  • SETroubleShoot "unrecognized service" error 2011-12-19

    I installed the package but I'm getting an "unrecognized service" error: [[email protected] ~]$ sudo yum install setroubleshoot Loaded plugins: refresh-packagekit Setting up Install Process Resolving Dependencies --> Running transaction chec

  • Python script as a service on Ubuntu 11.10 2012-06-08

    I am facing the following problem. I want to run a python script as a service on Ubuntu 11.10 system (already mentioned in the following link: Python service using Upstart on Ubuntu) I followed the steps mentioned in the above mentioned link, but i g

  • Trying to start nginx on VPS, I get "nginx: unrecognized service" 2013-02-16

    Following the How to install rails and nginx with passenger on Ubuntu tutorial from DigitalOcean.com, the seventh step manually starts nginx: sudo service nginx start but fails with the following error: nginx: unrecognized service --------------Solut

  • httpd: unrecognized service on RHEL 5.4 2013-06-23

    Hi All, I am a newbie to Linux and I am learning RHEL 5.4. I am attempting to install httpd-2.2.21 on RHEL 5.4 following instructions on this link which I think is excellent. http://www.thegeekstuff.com/2008/07/install-apache-2-from-source-on-linux/

  • CentOS 7 boots too fast and network is not ready when executing cron scripts 2014-10-31

    I have just upgraded from CentOS 6.5 to 7.0 and I am not too happy as the new systemd is probably giving me problems. It seems it is just simply booting too fast, starting up processes asynchronously and screwing up service dependencies. For example

  • Why is sssd an unrecognized service, even though it is installed and can be restarted? 2014-12-04

    Why is sssd an unrecognized service, even though it is installed and can be restarted? BTW: This concerns Ubuntu 14.04.1 LTS, it was not like that in 12.04 I will show what I mean below, I think it is a bug but I am interested in an explanation and/o

  • sudo service apache2 restart giving apache2: unrecognized service 2015-05-21

    I removed apache2 before and I reinstalled it on ubuntu 14.04. Now I want to restart apache. Here is how apache was uninstalled: sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common and sudo apt-get autoremove After re-installing I t

  • Stop cron script from destroying my mirrorlist with invalid data 2010-10-25

    I have to following cron script that runs daily. As you should be able to see from the code, it outputs the results from reflector to /etc/pacman.d/mirrorlist. $ cat /etc/cron.daily/update-mirrorlist #!/bin/bash reflector -l 5 -r -o /etc/pacman.d/mir

  • Permissions on cron scripts? 2010-10-29

    I've got some php scripts that I need to schedule for every hour. (a) How do I schedule them from the command line / shell? (b) What permissions / ownership should I set on them? Edit 1: Hi guys - the website is being run by 'apache' user. Which user

  • How do cron scripts effect web server performance? 2010-11-15

    I was just interested how a cron script will effect users of a website? (If at all) I want to execute a script that takes about a minute to execute on a regular basis. Will a dip in performance be noticed? Do I need to keep an eye on anything in part

  • Insert Wordpress page via external (cron) script? 2011-05-31

    I'm trying to write a php script that I can run out of cron to create new Wordpress pages. Unfortunately, I can't find any documentation on how to do this. I'm using the WP scripts rather than directly manipulating the SQL...but still no joy. The bel

  • Using wp_insert_post with WP Network in a cron script 2011-08-30

    I have network of sites, and I need to import data into them via a cron job. Obviously wp_insert_post is meaningless in this case, since i'm not in a blog...i'm in a cron script. I also read that switch_to_blog is deprecated, yet I can't find any alt

  • mysqld: unrecognized service 2012-02-19

    I have a CentOS server which runs few web sites. Suddenly all the web sites stopped functioning and when I check that I noticed that MySQL Service is down. I am new for this server related things. I executed following commands on WebMin since I have

  • What happens if a cron script tries to copy a directory at the same time as another process is writing to it? 2012-05-09

    For example, if I have a java process that (once every 2 hours) takes a backup of a large file, like 500mb, and places it into folder A on HDD A, and I want to schedule a cron script to copy the entire folder A to HDD B once per day... what happens i

  • Run python script as a service on Ubuntu 11.10 2012-06-11

    I am facing the following problem. I want to run a python script as a service on Ubuntu 11.10 system (already mentioned in the following link: http://stackoverflow.com/questions/4705564/python-script-as-linux-service-daemon/10948190#10948190) Query i

  • service perl-fcgi start, unrecognized service 2012-06-26

    From http://supportex.net/2011/11/migrating-otrs-apache-nginx/ I have a file /usr/local/bin/fastcgi-wrapper.pl and /lib/systemd/system/perl-fcgi.service. perl-fcgi.service has following content: [Unit] Description=otrs-index.pl [Service] ExecStart=/u

  • Cron Script to Delete Folder Contents Every 5 Minutes on Media Temple 2012-09-27

    I'm not familiar with server-side scripting, but I'm currently using a PHP application on Media Temple to cache JPEGs from four webcams hosted on a server located in the middle of the Indian Ocean. (Hence my reason for caching them in the US.) The we

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 1.043 (s). 13 q(s)