[SOLVED] openvpn issue: how to start service

Hi all,
I'm writing because I'm experiencing a problem while trying to start openvpn.
This morning I removed (i moved to .old)  the rc.conf file and this means i'm using a full systemd configuration.
The problem is that I don't know how to start openvpn. yesterday I was doing:
/etc/rc.d/openvpn start
today I tried again but it does not find such file: it is no more there :S
i started through:
openvpn /etc/openvpn/vpnname.conf
and it seems to work...but is this the only way? It produces lot of output, should I redirect it? I think I can but it's not the optimal solution
I need to start the service manually.
I tried:
# systemctl start [email protected]
Job for [email protected] failed. See 'systemctl status [email protected]' and 'journalctl -xn' for details.
# systemctl status [email protected]
[email protected] - OpenVPN connection to vpnname
Loaded: loaded (/usr/lib/systemd/system/[email protected]; disabled)
Active: failed (Result: exit-code) since Thu 2013-02-21 10:37:58 CET; 11min ago
Process: 1950 ExecStart=/usr/sbin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i (code=exited, status=1/FAILURE)
Feb 21 10:37:58 jily systemd[1]: Starting OpenVPN connection to vpnname...
Feb 21 10:37:58 jily openvpn[1950]: Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/vpnname.conf
Feb 21 10:37:58 jily openvpn[1950]: Use --help for more information.
Feb 21 10:37:58 jily systemd[1]: [email protected]: control process exited, code=exited status=1
Feb 21 10:37:58 jily systemd[1]: Failed to start OpenVPN connection to vpnname.
Feb 21 10:37:58 jily systemd[1]: Unit [email protected] entered failed state
Feb 21 10:48:50 jily systemd[1]: Stopped OpenVPN connection to vpnname.
# journalctl -xn
-- Logs begin at Mon 2012-11-12 13:06:40 CET, end at Thu 2013-02-21 10:50:32 CET. --
Feb 21 10:49:39 jily ntpd[574]: peers refreshed
Feb 21 10:49:39 jily ntpd[574]: new interface(s) found: waking up resolver
Feb 21 10:49:48 jily ntpd[574]: Deleting interface #7 tun0, 10.8.0.21#123, interface stats: received=0, sent=0, dropped=0, active_time=9 secs
Feb 21 10:49:48 jily ntpd[574]: peers refreshed
Feb 21 10:50:32 jily systemd[1]: Starting OpenVPN connection to vpnname...
-- Subject: Unit [email protected] has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/7d4958e842da4a758f6c1cdc7b36dcc5
-- Unit [email protected] has begun starting up.
Feb 21 10:50:32 jily openvpn[2020]: Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/vpnname.conf
Feb 21 10:50:32 jily openvpn[2020]: Use --help for more information.
Feb 21 10:50:32 jily systemd[1]: [email protected]: control process exited, code=exited status=1
Feb 21 10:50:32 jily systemd[1]: Failed to start OpenVPN connection to vpnname.
-- Subject: Unit [email protected] has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
-- Unit [email protected] has failed.
-- The result is failed.
Feb 21 10:50:32 jily systemd[1]: Unit [email protected] entered failed state
can you guys please help me understanding this?
Thanks in advance
Last edited by virusso80 (2013-04-03 07:54:59)

tomk wrote:
virusso80 wrote:
i started through:
openvpn /etc/openvpn/vpnname.conf
and it seems to work...
A bit vague there - does it or doesn't it?
yes, it does!
tomk wrote:
virusso80 wrote:Feb 21 10:37:58 jily openvpn[1950]: Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/vpnname.conf
This error is generated by openvpn itself, not systemd. What are the ownership/permissions of /etc/openvpn/vpnname.conf?
the following. I didn't change anything in that setting.
# ls -l /etc/openvpn/vpnname.conf
-rwx------ 1 root root 347 Sep 18 2010 /etc/openvpn/vpnname.conf
thanks

Similar Messages

  • How can start service from the spfile, on  Windows 2003,

    On Windows 2003, how can start service from the spfile?
    connect to the database as sysdba and startup will start from the spfile.
    Once I use wondows Service for shutting down and startup datbase it start from the pfile.
    Which defeat my ability to change parameters at the system level.

    Hi,
    I'm not sure, but maybe your windows Instance service was created with
    C:\> oradim -new -sid <SID> -startmode m -pfile C:\oracle\product\10.1.0\admin\pfile\init.ora
    then, you need edit this service with command like below:
    C:\> oradim -EDIT -SID <SID> -spfile C:\oracle\product\10.1.0\admin\spfile<SID>.ora
    Take a look on this link before make any changes:
    http://www.stanford.edu/dept/itss/docs/oracle/10g/win.101/b10113/create.htm#i1006533
    Cheers

  • After eBS 12.1.1 lay down in existing database how to start services

    Migrate eBS 11.5.10.2 db 9.2.0.6 to new server eBS 12.1.1 db 11.1.0.6.
    Path chosen: db 9.2 upgraded and migrated to db 11.1 using exp/imp to new server
    After eBS 12.1.1 lay down file system in existing db 11.1 how to link existing db to apps tier and to start server services.

    Hi Hussein,
    I did run db tier autoconfig I get:
    AutoConfig completed with errors.
    I checked the adconfig.log and at the part: ADX Database Utility is: Connection could not be obtained; returning null, and at the end I get message:
    [PROFILE PHASE]
      AutoConfig could not successfully execute the following scripts:
        Directory: D:\Oracle\prod\db\tech_st\11.1.0\appsutil\install\PROD_TEST1
          afdbprf.cmd             INSTE8_PRF         1
      [APPLY PHASE]
      AutoConfig could not successfully execute the following scripts:
        Directory: D:\Oracle\prod\db\tech_st\11.1.0\appsutil\install\PROD_TEST1
          adcrobj.cmd             INSTE8_APPLY       1
    AutoConfig is exiting with status 2
    The database is up and listener is up, why is not possible to connect through thin driver.
    And apps tier autoconfig:
    AutoConfig completed with errors.
    Completed execution of AutoConfig
    Checked the log file:
    adadmat.pl              INSTE8_APPLY       1
    Directory: D:\oracle\PROD\inst\apps\PROD_TEST1\admin\install
    adsvalsn.cmd            INSTE8_APPLY       1
    AutoConfig is exiting with status 30
    Thanks
    Adk

  • How to start service & connect with database in network

    Dear friends,
    I have created a Database and tried to connect it from remote computer. I have configured Database name and host name in the remote client computer. But when i net start oracleservice(db name) its not connected. showing Tns error. I started the database in the server side but unable to connect it through network in the client side. What shall I do??. Is the DBservice on server side from manual to Automatic change will have impact of connecting host from client side. Please explain. I am somewhere made mistake. Since, Initially i got connected and worked but the same now shows error. please explain.

    Dear friends,
    I did configured tns names and listener configuration in the server side and also tnsnames.ora in the client side. I use oracle 9i version 1 for server side and oracle 8i for client side. Is there any conflict in recognizing the system. The common error i get is ora-12203 but I started listner service and db service from the server side. and i can able to connect as client from the same host machine as client but could not able through network from remote computer. please tell the problems may involve.

  • How to start service to run Discoverer Viewer on 10.2 EE on web-port 7778?

    I have installed 10.2 EntEdition db on Windows, with OLAP and DataMining options "on", and wish to know what steps can enable me to run Discoverer Viewer (for example, http://mymachine:7778/discoverer/viewer ). What service must be turned on for there to be a response on this port?
    I have already started the DBconsole service (port 1158) , the isqplus service (port 5560 through isqlplusctl) and the tns listener service (through lsnrctl). What service do I start to get a response on port 7778 or 7777?
    I hope I don't need AS to run Discoverer Viewer...
    Thanks for any help,
    Vince

    Discoverer Plus/Viewer comes with AS10g or Business Intelligence Standard Edition downloads, not DB10g.
    AS 10g includes:
    * Oracle HTTP Server
    * Oracle Application Server Containers for J2EE (OC4J)
    * Oracle Application Server Web Cache
    * Oracle Application Server Portal
    * Oracle Application Server Wireless
    * Oracle Sensor Edge Server
    * Oracle Enterprise Manager 10g Application Server Control
    * Oracle Database Server 10g (10.1.0.4.2)
    * Oracle Internet Directory
    * Oracle Application Server Single Sign-On
    * Oracle Application Server Directory Integration Provisioning
    * Oracle Application Server Delegated Administration Services
    * Oracle Application Server Certificate Authority
    * Oracle Application Server Forms Services
    * Oracle Application Server Reports Services
    * Oracle Application Server Personalization
    * Oracle Business Intelligence Discoverer
    * Oracle Security Developer Tools
    * Oracle Application Server Guard
    * OracleAS Backup and Recovery Tool
    BI 10g SE includes:
    * Oracle Business Intelligence Discoverer
    * Oracle HTTP Server
    * Oracle Application Server Containers for J2EE (OC4J)
    * Oracle Enterprise Manager 10g Application Server Control
    * Oracle Application Server Web Cache
    * Oracle Application Server Reports Services
    http://www.oracle.com/technology/software/products/ias/htdocs/101202.html
    Regards,
    Steve.

  • How to start services

    I need to start tnslsnr (managed to do it) and oracle with orcl database instance. How to do it?

    I have rw permissions
    The problem seems to be in IPC protocol. System denies access to it. If I comment IPC string in listener.ora and leave only TCP one, listener starts properly
    Results of commads:
    lsnrctl start
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 13:29:51
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /mnt/e/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /mnt/e/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /mnt/e/oracle/product/10.2.0/db_1/network/log/listener.log
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    TNS-12555: TNS:permission denied
    TNS-12560: TNS:protocol adapter error
    TNS-00525: Insufficient privilege for operation
    Linux Error: 1: Operation not permitted
    Listener failed to start. See the error message(s) above...
    lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 13:30:10
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused

  • How to start service as specific user!!!

    Hi all,
    I need to create an apache service script. All is fine with this and I've imported etc but its running as root and I want to run as apache. Is there an easy way of doing this other than an su -c???
    Cheers

    Extremely easy:
    Modify the httpd.conf and tell it which user and group to run as.

  • How to start my instance??!!!!!!!!

    I installed Oracle 10g. Then I created an instance. After the instance was created, I went to OEM to look at the instance, and noticed it wasn't turned on. I went to the network folder and noticed I only had sqlnet.ora; no Listener.ora or tsnames.ora. I put the files there, but when I try to startup the instance, the password and usernames I created with the database don't work.
    Agent Connection to Instance failed
    Listener down

    PLease, do not multi-post the same issue
    How to start my instance??!!!!!!!!
    HELP!!!!!!!!!!!!!!!!!!!!!!!!!
    HELP!!!!!!!!!!!!!!!!!!!!!!!!!
    And don't think stacking a long string of "!!!!!" and/or '?????" on your subject helps get a better/faster answer.

  • My toolbar is missing and there is a button where it used to be that says "Please re-install the Toolbar" but when I click on it nothing happens? Also when I start Firefox I get a script running error how do I solve these issues?

    My toolbar is missing and there is a button at the top left that asks me to "Please re-install the Toolbar" but when I click on it nothing happens???
    Then when I start Mozilla I get a long delay before it launches and a script running error "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
    Script: chrome://tavgp/content/libs/include.js:595"
    How do I solve these issues???

    No idea - and you provide no clues
    what version of iPHoto do you have? Of the OS? is the iPhoto icon you are speaking of in the Dock?
    re-read your post and try to provide information using standard Mac terms since we can not see you or your computer and only have your worrds to let us try to help you
    Somehow my "IPhoto" icon now says "Preview".  When I click on "Preview" nothing opens up except the bar says Preview.  When I click on the Preview on the bar, a box opens up with different items, except when I click on any of them, there is nothing there.  The only thing that work is the "quit preview".  However, it is still there where my IPhoto icon should be.  I can't get into my IPhoto.  How do I get rid of this "Preview" and how did it end up taking over the IPhoto icon???
    If you go to your Applications folder and double click on iPhoto what happen?
    LN

  • I'm trying to sync a new i phone to i tunes.  I get message that says cannot be used because the apple mobile device service is not started.  Any idea what I can do to solve this issue?

    I'm trying to sync a new iphone into i tunes.  I'm getting a message that says that this iphone cannot be used because the apple mobile device service is not started.  Any idea what I can do to solve this issue?

    See Here...
    AMDS for Windows
    http://support.apple.com/kb/TS1567
    AMDS for Mac
    http://support.apple.com/kb/ht1747

  • I have a Windows 7 Professional, 64 bits on my computer and have recently installed iTunes 11.1.3.8. but i started having this msg :"The folder iTunes is on a locked disk or you do not have write permission for this folder" issues: how can i solve it?

    I have a Windows 7 Professional, 64 bits on my computer and have recently installed iTunes 11.1.3.8. but i started having this msg :"The folder iTunes is on a locked disk or you do not have write permission for this folder" issues: how can i solve it?

    Right-click on your main iTunes folder and click Properties, then go to the Security tab and click Advanced. If necessary grant your account and SYSTEM full control of this folder, subfolders and files, then tick the option to replace permissions on child objects which will repair permissions throughout the library. This is the XP dialog but Windows 7 shouldn't be too different.
    If it won't let you change the permissions use the Owner tab to take ownneship from an account with administror privileges.
    tt2

  • When starting a rental movie, I get the message: "An error occured loading this content, please try again later". Any ideas how to solve this issue?

    When starting a rental movie, I get the message: "An error occured loading this content, please try again later". Any ideas how to solve this issue?

    Firstly, I should have typed speedtest.net previously.
    Now that's an interesting comment you make, out of interest do you have any purchased HD movies in your iTunes collection, if so, do they play on the Apple TV with your new tv.

  • After getting iOS 6.1.2 wifi inactive. How fast can solve this issue in UK service center?

    For Iphone 4S - After updating to iOS 6.1.2 wifi became inactive(grayved - i can't turn it on).
    Phone still on warranty. I've tried everything - recover, setings resets etc.
    How fast can solve this issue in UK service center?
    I will be in London for 2 days, and i've bought my iphone there.
    Will they be able to change my phone in these 2 days?
    Thanks.

    no one can say for sure, it depends on how busy they are, you should try to make an appt. in the meantime, have you tried the help from the following apple documents:
    http://www.apple.com/support/iphone/wifi/
    http://support.apple.com/kb/ts1398

  • I`ve just bought a Mac Book pro 15", did the required updates and since two days ago it freezes. Now I can´t even start the computer. the screen is allways white. how can I solve this issue??

    I`ve just bought a Mac Book pro 15", did the required updates and since two days ago it freezes. Now I can´t even start the computer. the screen is allways white. how can I solve this issue??

    The same thing happened to me... Since two days the ******* thing keeps freezing after a while. Then I try to reboot and the screen goes white and it doesn't boot. If I wait like half an hour it boots again.
    I thought it was a hardware problem, but the Apple Hardware Test founds nothing at all. I think it has to do with the software update I performed 2 days ago.
    (MacBook Pro 15" Early 2011)

  • I am facing recurrent failing message on my MacBook Air as follows : "your starting disk is fully soon"...how can I solve this issue?? Thks in advance for your help

    I am currently facing a following error message "Please note your starting disk is upcoming full"... It does appear I did a mistake, could someone help me by solving this issue?? Thks José

    No mistake, you simply have to delete some items from your MacBook Air.
    Start by emptying the Trash - obvious, but easily overlooked.
    Then determine what, if any, documents, photos, movies, etc. you can live without and either delete them or copy them to another device.
    For more ideas read here: OSX Tips: Where did my Disk Space go?

Maybe you are looking for

  • 9i report services need info. on CGI and RWSERVLET

    We are trying to use the reports 9i against forms 6i. I need to info. on how we can differentiate the two types of service(whether it is CGI or rwservlet). Setup1: 1. Run rwserver -install server=TESTCGI 2. This creates the service and the testcgi.co

  • Upload file to global directory in Dev, Q&A and Prod!

    I have an upload application in BSP, that uploads files to for example /usr/sap/BWD/files this works in Development, but of course this directory is not available in Production, so BSP won't work there. Isn't it possible to use one global directory?

  • How to use the Digital Audio in & out RCA jacks a6010n

    On the lower right of the back of my Pavillion a6010n desktop, above the mouse and keboard connections and below the monitor connection are two RCA jacks labeled Digital Audio in and out.  The top one has an orange insulator and is labeled "out", and

  • Editable Blocked ALV

    HI,     I have created a Blocked ALV with 2 blocks.. first block is editable by the user , I want to store the editted date into my Internal table for further processing.. Kindly guide me how to do.. Plz dont give any links... all sites are blocked h

  • Netbeans 3.5\Code2000.tff\Character Display

    I'm currently working on a bilingual project. I am using Netbeans 3.5 to code it in, along with designing the gui. Some of the characters that I wish to display include those of indian native languages such as hindi. This is where the Code2000 font c