How to install [insert daemon here] as a service?

Hi all!
I've just installed Kerio Mailserver on Linux because I've got a Windows license and thought I'd move it over to Linux.
Since Fedora and SUSE are the only officially supported distributions for this mailserver, it doesn't install itself as a service anywhere.
My question is - How could I install this as a service so I can do /etc/rc.d/kerio start etc...? I've looked at the existing bash scripts in /etc/rc.d for other daemons but it's a bit tricky to understand.
Is there a tutorial existing on this subject somewhere?
Any help is MUCH appreciated!

I don't know of any tutorial myself - picking apart some of the official init scripts was enough for me in most cases. There's one example, though, that might be useful here, and that's openswan, which by default, dumps a bunch of SysV scripts in /etc/rc*.d - does kerio do this, by any chance?
Anyway, I worked around it by creating an Arch-style init script, which then calls the actual openswan init script. Here are some links if you want to check it out:
Arch init script
Openswan init script
If this means nothing to you, post kerio's init script, or a link to it - maybe we can work something out.
One last thing, probably unnecessary, but presumably you know that there is a wide choice of excellent open-source mail server applications available? 

Similar Messages

  • How to install MX60 and enable client vpn services

    Can anyone show me a link or video that will assist in installing MX60 and enable client VPN services?

    Thanks Brandon. I will explore the Meraki knowledge base link you sent.

  • How to Install DNS ROLE and its FQDN service and Reverse Lookup zone in Server Core using Powershell?

    Hi
    I am Setting A Lab Scenario That the PC name "Core2012" i.e. Server Core 2012 Will be Domain Controller.
    Using PowerShell I have done this Task
    Change hostname ; Configure IP address and Preferred DNS address ; Disable IPv6 ;
    Configure Firewall ; Even Active Directory Role install.
    Now problem occur
    Well I have know to install DNS role install-WindowsFeature DNS
    Ok
    But; 
    How to configure FQDN ; Restore mode password ; Setting up global catalog server ;and configure Reverse Lookup zone Using powershell
    I have search many Forums but I am not getting to touch with it.
    So I Need a help to set and Configure DNS using Powershell
    Thank You!!!
    sagarpdalvi

    Hi Sagarpdalvi,
    To set the Safe mode password with powershell, please refer to the cmdlet Install-ADDSDomainController, to enable global catalog(GC), please run the cmdlet "Set-ADObject" after install Active Directory on the core server, to configure Reverse Lookup zone,
    please refer to the cmdlet
    Add-DnsServerPrimaryZone.
    To configure DC with powershell, please check the scripts:
    Installing a Domain Controller on Windows Server 2012
    R2 Core
    Enabling and Disabling the Global Catalog
    To configure DNS, the Domain Name System (DNS) Server Cmdlets should be helpful for you:
    http://technet.microsoft.com/en-us/library/jj649850.aspx
    I hope this helps.

  • How to install DI system? bills of service(BOS)

    Hi experts,
    I want to use bill of service(BOS) for sales quotation. it have to install DI system, how can I install it,? I use ECC 6.0.
    Thanks
    Lance

    Hi Lance,
    I think that to use the SD bill of service, you have to activate ECC-DIMP.
    You can do that through SPRO -> Activate Business Functions, selecting "Discreet Industries & Mill Prod." in Business Function Set, and then activating "Discrete Industries - Mill Products".
    Once this is done, BoS menus and IMG nodes should be added.
    Befere activating it, please read carefully notes 874473, 1083533
    Cheers,
    Pedro

  • How to install j2re on Linux (newbie, non-developer)

    Forgive me for this stupid newbie question, but I'd like to know where to put my j2re package. I downloaded the .bin file, and extracted it into the folder where I downloaded it. Does it just stay there? Is it installed? I hope not, because it's in my tmp directory.
    I'm not a developer (obviously); I just want to run Open Office, which requires JRE, but gives no clue how to install it.

    Go here http://java.sun.com/j2se/1.4/download.html and click on the line "Installation Instructions"

  • How to Install Integration service from hyper-v host to a virtual machine ?

    i have around 100 Virtual Machine distributed on a cluster hyper-v cluster so i need to know how to install the upgraded version of integration service from the hyper-v host to all  virtual machines
    that has a mismatched version of the integration service using power-shell script ?

    See this article:
    PowerShell Script
    for Automated Install of Hyper-V Integration Services in a VM running on Windows Server 2012 with Hyper-V V 3.0 Role using PowerShell Remoting
    Mike Crowley | MVP
    My Blog --
    Planet Technologies

  • How can install SQL Server 2008 Integration Services without CD?

    How can install SQL Server 2008 R2 Integration Services without CD?
    The PC with Windows 7 32-bits is far away and poor bandwidth . So, I want to install SQL Server 2008 Integration Services without CD.
    Does any installer for SSIS only?

    Copy the install media from a memory stick, portable drive or network.
    Arthur My Blog

  • How to install report server as service in windows

    OS : windows XP
    oracle 10G isuite
    Every time I am restarting my machine I have to start the report server using command rwserver server=repserver10G start in command prompt.
    How to install the the report server as service in windows? so that it can be started automatically with machine restart.

    You can create one batch file for this command and keep in startup scripts.
    -Ammad

  • How to install local J2EE Engine for NTW4 Dev Studio ?

    We installed a full Web As 640 ABA+J2EE stack9 , and activated all the JDI components (DTR, CBS, CMS).
    NOw we instaleld on local pc the Developer Studio and are trying to begin teh develop of java packages.
    We are not able to activate the debug on the remote J2EE ENgine.
    According the HelpOnline we should install a local J2EE Engine in order to be able to do debugging.
    The problem is taht nowhere is written where to find out this software and how to install.
    Anyone has some experience on that ?
    Regards
    G.
    Regards

    Hi Gianfranco,
    I see. Then, you are right. You need a local J2EE Engine.
    There is a guide how to install a Developer Workplace at:
    http://service.sap.com/instguidesnw04 -> Installation -> Dev Env -> Inst. Guide - SAP NetWeaver Developer Workplace Stack x
    Hope, that will help.
    And I guess, the following might be of some help after you complete the installation: http://help.sap.com/saphelp_nw04/helpdata/en/92/fa369fb68e004598f246494665a49e/frameset.htm
    Best regards,
    Viliana
    Message was edited by: Viliana Encheva

  • After installing and configuring Workflow Manager and Service Bus, I'm getting 403.

    I've spent the day installing SharePoint 2013 on a Windows Server 2012 environment. This server is not the domain controller. Following instructions on how to install and configure Workflow Manager and service bus, it appears although I'm following the instructions
    (and I get no errors), something is not working.
    If I try to go to the website that it creates in IIS
    http://localhost:12291 I get a 403 error. Also if I perform the powershell query to get the port number "Get-WFFarm | ft WFMgmtHttpPort" I don't get any value returned to me.
    Until I validate that the Workflow Manager is installed and working, I will not attempt to pair it to the SharePoint 2013 farm. Which hopefully makes this a Workflow Manager question not a SharePoint issue.
    Can anyone offer any suggestions please? Should I even get a valid webpage if I hit localhost:12291? According to one walkthrough I've looked at I should get an XML display of workflow and security configurations.

    I experienced the same two issues mentioned in this thread today.
    Regarding  the proper XML not appearing at <workflowhost>:12291 I was experiencing the same with an error message in Chrome saying the caller lacked read permissions, and 403 in IE. I had checked IIS, database permissions and connections and more.
    All of the setup messages and status checks were a-okay. I voted Zimo's comment as helpful because it cued me in to examine the service in Central Administration - where I found there was no administrator assigned to the workflow service. As soon as that was
    done, the workflow host site was brows-able.
    The resolution to SharePoint Designer not offering 2013 workflows as an option was in my case that there was an additional WFE on which I had not installed the Workflow Manager
    Client. This is noted with a bright yellow box in the section about configuring workflow with HTTP here:
    http://technet.microsoft.com/en-us/library/jj658588(v=office.15)
    If puzzles are good for your BRAIN then SharePoint will keep it really healthy!
    Ramona Maxwell MCPD
    SharePoint 2010, MCITP
    SQL Server 2008

  • I have installed Find My Friends app in my iPhone5 and can anyone tell me how can I insert my photo so that my friends can see me? Thank you.

    I have installed Find My Friends app in my iPhone5 and can anyone tell me how can I insert my photo so that my friends can see me? Thank you.

    I don't have Find My Friends installed but if I understand correctly, the photos that would display on your friends phones would come from the Contacts on their phone. Here is a previous discussion that may help: https://discussions.apple.com/message/25429023#25429023

  • How to install when I keep getting the following massage  on windows 7 64 bit with or with firewall on and vwith or with virus protection on  here is post  This installation package could net be opened verify that the package exist and that you can access

    how to install when I keep getting the following massage  on windows 7 64 bit with or with firewall on and with or with virus protection on  here is post           " This installation package could net be opened verify that the package exist and that you can access"  same when trying to install quicktime

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/quicktime/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • Hi im from oman, muscat my friend and i bought ip5 last month  her phone has facetime and mine is missing. I went back to Extra store and availed apple product packages but after availing t, facetime application was not installed.How to install facetime?

    My serial number is  C3******TWD, hi im from oman, muscat my friend and i bought ip5 last month  her phone has facetime and mine is missing. I went back to Extra store and availed apple product packages but after availing t, facetime application was not installed.How to install facetime?
    <Edited by Host>

    Guys thank you so much for the advises and helps.. i went back to Extra store and finally they changed my unit to a new one..Now i can figured out which one has facetime or none, from the box itself at back  it writtens arabic so definetely no facetime and if english, portugese and chinese characters has 100 % with facetime.. I'm so blessed that they agreed to changed my unit to new one. At first the manager opened  four boxes of new unit for me to check if facetime is there and he reassured me there's new batch of iphone5 coming on 2nd day. So i went back and he changed it to new one.. .Now im satisfied..

  • Is anyone here knows how to install face time on my iphone 4s,since it was not yet installed on my iphone..anyone please.

    My concern is how to install facetime apps ob my iphone 4s.,is anyone here have an idea??

    You can't and there are no FaceTime apps to be installed.
    If your phone does no have FaceTime on it already, then there is nothing that you can do to get it except buy a new phone.
    That is it - you cannot get FaceTime on a phone that does not have it.

  • How to install Windows 7/Vista as 2nd OS and retain predesktop environment (service partition)

    This is a step-by-step instruction how to install Windows Vista or Windows 7 as a second OS on a Lenovo Thinkpad that originally shipped with Windows XP AND how to retain the access to the Lenovo Service Partition.
    I have been searching the internet for instructions like these but could not find anything useful. So I am posting it
    here. Maybe this helps other users.
    I have tested the procedure below with installation of Windows Vista Ultimate (64bit) and Windows 7 Ultimate (64bit). I believe that the procedure will also work with the 32bit versions of these OSs. I am not totally convinced that this works when the OS to install is Windows XP (64bit or 32bit). XP has a completely different boot sequence compared to Vista or 7. The basic steps would remain the same, but the XP setup is less forgiving when it finds an unknown partition. If somebody wants to try it out, please post your results as a reply to this forum entry.
    Never never never try to install an older OS (like Windows 2000 or NT) as a second OS when XP is already installed! This is doomed to fail.
    The procedure below does NOT work for Linux installations. I am not a Linux wizard, but any Linux bootmanager I know about is incompatible with the Lenovo Service Partition.
    The procedure was tested on a Thinkpad R61 model 8918-B9G. It should work similar on other models.
    You definitely need a service partition with Rescue&Recovery version 4. It will NOT work with older versions of R&R or if the service partition is not a type12 partition (see below how to find out about that).
    I assume that the harddisk partitions are unmodified, i.e. still have factory settings. This is likely the case if you
    never attempted any OS install or recovery action. If this is not the case, the procedure may or may not work.
    You also need a bootable CD with a tool that can change the size of your current system partition. I was using gparted live version 0.5.2-9. ( http://gparted.sourceforge.net/ )
    Everything you do is at your own risk. I am in no way related to Lenovo, other than being a customer using their
    products.
    Step 1) Make a full backup of your harddisk. Get yourself recovery CDs for your Thinkpad model if you don't have any. The changes we are about to make can completely screw up your harddrive. A typo is sufficient for that to happen.
    Step 2) Power on the system. Check that you can boot into the Service Partition by pressing the Thinkvantage button when the startup screen appears. (Older systems may have a differently named button.) If there is a problem booting the service partition now, it is likely that the rest of this procedure will not fix it.
    Step 3) From the service partition choose 'Warmstart' to reboot the system. Reboot Windows XP, logon.
    Open a command prompt. CD to the following directory:
    \Program Files\Common Files\Lenovo\BMGR
    On a german language system (like mine) it is
    \Programme\Gemeinsame Dateien\Lenovo\BMGR
    If you have an older IBM system the directory may be named
    \Program Files\Common Files\IBM\BMGR
    or something like that. Maybe you need to search around.
    In the following, I will call this the "BMGR dir".
    Enter the following command:
    bmgr32 /info /v
    You should get an output similar to this:
    C:\Programme\Gemeinsame Dateien\Lenovo\BMGR>bmgr32 /info /v
    It's a Lenovo  MBR
    Opened Master Boot Record to see whose MBR it is.
    It's a Lenovo MBR
    Opened drive for reading
    Partition 0 the SP? no, type 0x07 is not correct
    Partition 1 the SP? (512)  Label is SERVICEV
    Using version 2.05 of Lenovo Boot Manager
    Reading: \\.\PHYSICALDRIVE0
            MBR Sector 1 Index: 1   Checksum: 00    Disabled
            MBR Sector 2 Index: 4   Checksum: 03    Passed
            MBR Sector 3 Index: 5   Checksum: FD    Passed
            MBR Sector 4 Index: 6   Checksum: 58    Passed
            MBR Sector 5 Index: 7   Checksum: 96    Passed
            MBR Sector 6 Index: 8   Checksum: 7F    Passed
            Data Sector  Index: 3   Checksum: F1    Passed
            Original MBR Index: 2   Checksum: BD    Passed
            No Patch Sectors
            Checksum Byte: 00
            Think Flag: 1
            WinPE Partition (0-3): 1        Alt Boot Partition (0-3): 1
            Boot Config: 2 (Service Partition containing two Service OS's)
            Boot State: 0                   Alt Boot Flag: 0
            (Normal booting operation, will boot to Customer OS)
            RRU: 00000000 00000000          Prev Active Part: 255
            Previous Partition Type: FF     Patch IN: 0     OUT: 0
            CIRT Disabled
            TOC: 0000000000000000           Lock: 0
            Show Error: 0                   Halt on Error: 0
            CIRT Load Return: 0
            CIRT Execute Return: 0
            Pause Duration: 10              Scan Code: 0085
            F11 Msg: To boot to the Rescue and Recovery Environment, Press F11
            Check Msg: There has been a signature failure
     #  active  type      start CHS      end CHS      startLBA       size
     0   0x80   0x07      1   1   0   239 255 255           63    301296177
     1   0x00   0x12      0 193 255   239 255 255    301296240     11279520
     2   0x00   0x00      0   0   0     0   0   0            0            0
     3   0x00   0x00      0   0   0     0   0   0            0            0
    C:\Programme\Gemeinsame Dateien\Lenovo\BMGR>
    The important thing to look for is the 0x12 partition type in the partition table at the bottom. This is the service
    partition. If you do not have a 0x12 partition, then you can stop here because the rest of the procedure will not work
    for you.
    Step 4) Shutdown and boot gparted from CD. Shrink the system partition to the desired size. Do NOT touch the service partition! Do NOT attempt to create another partition! Leave the new white space on the disk untouched! Apply changes and restart the system.
    Step 5) Reboot XP. gparted has set the NTFS dirty bit. This will cause XP to run a full CHKDSK. Depending on how much files there are on the partition this may take considerable time. Let CHKDSK run to completion. When CHKDSK finishes, the system will automatically reboot.
    Step 6) XP reboots now. Logon. When loading the desktop, XP will show a popup window, stating that system settings have been changed and new devices been discovered and that the system should be rebooted. This is ok. XP actually recognized the shrunk system partition and applied the necessary changes to its own system parameters. Click YES to reboot the system.
    Step 7) XP reboots. Logon. Open a command prompt, CD to the BMGR dir and enter:
    bmgr32 /info /v
    The output you get should be similar to the output you have seen in step 3, except that the partition 0 size column
    shows a smaller value.
    Step 8) Shutdown, restart. Check that you can still access the service partition by pressing the blue Thinkvantage button when the system startup screen appears.
    Step 9) From the predesktop environment choose warmstart. Reboot XP. Logon, logoff, shutdown.
    DO NOT SKIP THIS STEP!!! If you start the Windows Vista/7 install right after shutting down from the predesktop
    environment, the Win Vista/7 setup program will screw up your harddisk! The Lenovo MBR bootmgr reboot takes two steps for completion. The first step is the shutdown and the second step is executed when booting from harddisk. A boot from the Windows CD will skip this second step and disaster finds its way...
    Step 10) Insert the Windows Vista/7 DVD and boot it. Start the setup. Choose "Custom (advanced)" install. It will show the partitions on the disk. Select the white space (unallocated). Click on "disk options (advanced)". Click on "New" to create a new partition in the white space. Keep the default size, click "Apply". Click "Format". A popup window appears stating that the partition may hold OEM data. Continue. Click "Next". Installation starts.
    Continued in the second post...

    Step 11) Win Vista/XP will reboot several times during installation. You will always see the Windows bootmanager with an entry for "Earlier Windows version" and "Windows Vista/7". DO NOT DARE to touch the blue Thinkvantage button on any reboot or press any function keys!
    Step 12) When the installation is finished, check that you can successfully reboot Win Vista/7 by selecting it from the Windows bootmanager.
    Step 13) Reboot XP by choosing "Earlier Windows version" from the Windows bootmanager. Open a command prompt. CD to the BMGR dir. Enter the following command:
    bmgr32 /info /v
    The output will now look like this:
    C:\Programme\Gemeinsame Dateien\Lenovo\BMGR>bmgr32 /info /v
    Opened Master Boot Record to see whose MBR it is.
    Opened drive for reading
    Partition 0 the SP? no, type 0x07 is not correct
    Partition 1 the SP? no, type 0x07 is not correct
    Partition 2 the SP? (512)  Label is SERVICEV
     #  active  type      start CHS      end CHS      startLBA       size
     0   0x80   0x07      1   1   0   254 255 255           63    109675692
     1   0x00   0x07    239 255 255   239 255 255    109676544    191619072
     2   0x00   0x12    239 255 255   239 255 255    301296240     11279520
     3   0x00   0x00      0   0   0     0   0   0            0            0
    C:\Programme\Gemeinsame Dateien\Lenovo\BMGR>
    startLBA and size will of course differ, depending on the actual partition sizes you have set. Note that Windows setup moved the service partition to entry 2 of the partition table. If you do not see the 0x12 partition then stop here.
    Otherwise the following step will likely screw up you harddisk.
    Enter the following command (case sensitive?):
    bmgr32 /Fbootmgr.bin /m0 /IBM /v
    The output will look like this:
    C:\Programme\Gemeinsame Dateien\Lenovo\BMGR>bmgr32 /Fbootmgr.bin /m0 /IBM /v
    installing MBR
    finding free sectors
    Sector 9 is free
    Sector 10 is free
    Sector 11 is free
    Sector 12 is free
    Sector 13 is free
    Sector 14 is free
    Sector 15 is free
    Sector 16 is free
    Opened Master Boot Record to see whose MBR it is.
    It's a Lenovo MBR
    Opened drive for reading
    Partition 0 the SP? no, type 0x07 is not correct
    Partition 1 the SP? no, type 0x07 is not correct
    Partition 2 the SP? (512)  Label is SERVICEV
    Setting Think bit
    C:\Programme\Gemeinsame Dateien\Lenovo\BMGR>
    This command reinstalled the Lenovo bootmanager in the MBR that was erased by the Win Vista/7 setup program.
    Enter the following command:
    bmgr32 /info /v
    The output will now look like this:
    C:\Programme\Gemeinsame Dateien\Lenovo\BMGR>bmgr32 /info /v
    It's a Lenovo  MBR
    Opened Master Boot Record to see whose MBR it is.
    It's a Lenovo MBR
    Opened drive for reading
    Partition 0 the SP? no, type 0x07 is not correct
    Partition 1 the SP? no, type 0x07 is not correct
    Partition 2 the SP? (512)  Label is SERVICEV
    Using version 2.05 of Lenovo Boot Manager
    Reading: \\.\PHYSICALDRIVE0
            MBR Sector 1 Index: 1   Checksum: 00    Disabled
            MBR Sector 2 Index: 11  Checksum: 03    Passed
            MBR Sector 3 Index: 12  Checksum: FD    Passed
            MBR Sector 4 Index: 13  Checksum: 58    Passed
            MBR Sector 5 Index: 14  Checksum: 96    Passed
            MBR Sector 6 Index: 15  Checksum: 7F    Passed
            Data Sector  Index: 10  Checksum: 01    Passed
            Original MBR Index: 9   Checksum: 12    Passed
            No Patch Sectors
            Checksum Byte: 00
            Think Flag: 1
            WinPE Partition (0-3): 2        Alt Boot Partition (0-3): 2
            Boot Config: 0 (Service Partition containing one Service OS)
            Boot State: 0                   Alt Boot Flag: 0
            (Normal booting operation, will boot to Customer OS)
            RRU: 00000000 00000000          Prev Active Part: 255
            Previous Partition Type: FF     Patch IN: 0     OUT: 0
            CIRT Disabled
            TOC: 0000000000000000           Lock: 0
            Show Error: 0                   Halt on Error: 0
            CIRT Load Return: 0
            CIRT Execute Return: 0
            Pause Duration: 10              Scan Code: 0085
            F11 Msg: To boot to the Rescue and Recovery Environment, Press F11
            Check Msg: There has been a signature failure
     #  active  type      start CHS      end CHS      startLBA       size
     0   0x80   0x07      1   1   0   254 255 255           63    109675692
     1   0x00   0x07    239 255 255   239 255 255    109676544    191619072
     2   0x00   0x12    239 255 255   239 255 255    301296240     11279520
     3   0x00   0x00      0   0   0     0   0   0            0            0
    C:\Programme\Gemeinsame Dateien\Lenovo\BMGR>
    So you have actually regained the Lenovo bootmanager. But you are not done yet.
    Step 14) Shutdown. Restart the system. DO NOT PRESS THE BLUE THINKVANTAGE BUTTON AT THE SYSTEM STARTUP SCREEN!!! IT DOES NOT WORK YET! When the system startup screen DISAPPEARS, quickly press F11 (maybe several times). The system should now boot the predesktop environment from the service partition.
    Step 15) When the predesktop is there, choose "warmstart". When the system startup screen appears, press the blue Thinkvantage button. The system should again boot into the predesktop. The blue Thinkvantage button now works permanently.
    Step 16) Check that you can boot Win XP and Win Vista/7 from the Windows bootmanager. You're done!

Maybe you are looking for

  • Can you have an email account from a personal domain on mobile me?

    I want to be able to answer emails that come in from my personal domain website (www.writenow-communications.ca) with an email address [email protected] (I want mobile me email to reply from that name.) Is this possible, and if it is, how do I do it?

  • Unable to download OS X Mavericks 10.9.4

    When I try to install OS X Mavericks 10.9.4 it will install and I can see it in my systems but the APP Store still shows that I have updates needed. I've been trying to use iTunes to restore my iPad mini but getting an error that iTunes needs to be u

  • Mail at .Mac vs on my Mac - which should I use ,or both?

    I have Mail with On My Mac, which is where everything seems to come in, and also .Mac. I use [email protected] as my e-mail address. On My Mac puts everything, including the folders I made for various messages, on my hard drive. .Mac puts everything

  • Bill of Lading in SD

    Hi Friends, Can anybody let me know how to generate the output for the Bill of Lading from SD perspective? Cheers Ivy

  • Can iron port supports auto mail reply for external domains

    Hi everybody, We have a requirement, that our mail security gateway (ironport) should be configured in such a way that it should send the automatic mail reply for  the external domains. Can any one suggest, It can be configured or not....Post any rel