[Solved] Help with conversion to systemd on remote server

Hi everyone ,
I've been trying to convert my server from initscripts to systemd using this wiki section: https://wiki.archlinux.org/index.php/Sy … nitscripts
Unfortunately, it looks like I'm missing something. After a reboot, the server (according to my provider) requests login on-screen, yet will not connect to the network (does not respond to pings)
This is my current DAEMONS array from rc.conf
DAEMONS=(net-profiles crond)
This is my previous array (from rc.conf.pacsave)
DAEMONS=(syslog-ng sshd net-profiles crond named)
I've added syslog-ng, sshd, and named using "systemctl enable .......service"
net-profiles.service also seems to be acting strangely, so I've included it in the daemons array
~$ ls /usr/lib/systemd/system/ | grep net-profiles
net-profiles.service
~$ systemctl enable $(ls /usr/lib/systemd/system/ | grep net-profiles)
Operation failed: No such file or directory
Is there a network service I'm forgetting?
My provider is OVH, do they have any special init scripts?
Extra info:
~$ ls /etc/systemd/system/multi-user.target.wants/
httpd.service mysqld.service named.service remote-fs.target sshd.service syslog-ng.service vsftpd.service
I have access to the machine through a provided rescue kernel and chroot. When I run systemctl alone, it produces the following message:
~$ systemctl
Failed to get D-Bus connection: No connection to service manager.
Last edited by tripple (2013-08-19 11:43:23)

tomk wrote:
Why do you think net-profiles.service exists? netcfg is no longer in use, but even when it was, it didn't include such a file.
I suggest you (re-)read the wiki's network config pages. Depending on your requirenets, you could end up using network.service, dhcpcd, service, or netctl, netcfg' successor.
It's in /usr/lib/systemd/system/, shouldn't I be able to enable it?
tripple wrote:
net-profiles.service also seems to be acting strangely, so I've included it in the daemons array
~$ ls /usr/lib/systemd/system/ | grep net-profiles
net-profiles.service
Which wiki page exactly? I'm not sure what information I'm looking for. Would I use only one of those services? Do I need a network service like dhcpcd or netctl?
Edit: Oh, hey... I fixed it
I enabling net-auto-wired.service, netcfg.service, and dhcpcd.service. Plus a grub-makeconfig for good measure (I had edited /etc/default/grub before the problem occurred to remove the "init=/usr/lib/systemd/systemd" line but I forgot to re-make the config.)
Last edited by tripple (2013-08-19 11:43:09)

Similar Messages

  • How can you run a command with elevated rights on a remote server with invoke-command ?

    I am trying to run a script on a remote server with invoke-command.  The script is starting and is running fine, but the problem is that it should be running with elevated rights on the remote server.  On the server where I start the invoke-command, my account has the necessary rights.
    The server were I launch the invoke-command is a W2K8 R2.  The remote box is a W2K3 with powershell v2.0 installed.
    When I launch the script on the remote-box from the command line, I don't get the access denied's.
    Is there a way to do this ?
    Thanks in advance

    The script that I want to run is to install the windows updates.  I get an access denied on the download of the updates.
    When I execute the script on an W2K8 box, (not remotely) and I run it with non-elevated rights, I get the same error.
    The script is running fine when it is launched on W2K3 box locally with a domain account that has local admin rights, or on a W2K8 R2 server with a domain account that has local admin rights, but with elevated rights.
    Thanks in advance for your help.
    #=== start script ====
    param($installOption="TESTINSTALL",$rebootOption="NOREBOOT")
    Function Show-Help
    Write-Host ""
    Write-Host "SCRIPT: $scriptName <installOption> <RebootOption>"
    Write-Host ""
    Write-Host "DESCRIPTION: Installatie van WSUS updates op de lokale server"
    Write-Host ""
    Write-Host "PARAMETERS"
    Write-Host " -installOption <[INSTALL|TESTINSTALL]>"
    Write-Host " -rebootOption <[REBOOT|NOREBOOT|REBOOT_IF_UPDATED]>"
    Write-Host ""
    Write-Host "EXAMPLE:"
    Write-Host "$ScriptName -installOption INSTALL -rebootOption REBOOT_IF_UPDATED"
    Write-Host "$ScriptNAme INSTALL NOREBOOT"
    Write-Host ""
    Write-Host "Indien beide parameter weggelaten worden zijn de defaultwaarden :"
    Write-Host " installOption=TESTINSTALL "
    Write-Host " RebootOption=NOREBOOT"
    Write-Host ""
    Exit
    #Include alle globale variablen
    $CEIF_WIN_PATH = (get-content env:CEIF_WIN_PATH)
    $includeFile=$CEIF_WIN_PATH + "\Scripts\include_win.ps1"
    . $includeFile
    #initialiseer error count
    $errcnt=0
    $scriptName=$MyInvocation.MyCommand.Name
    #argumenten controleren
    $arrInstallOption= "TESTINSTALL", "INSTALL" # Mandatory variable with predefined values
    If (!($arrInstallOption –contains $installOption)){ Show-Help }
    $arrRebootOption = "REBOOT", "NOREBOOT","REBOOT_IF_UPDATED" # Mandatory variable with predefined values
    If (!($arrRebootOption –contains $rebootOption)){ Show-Help }
    #Logfile opbouwen
    $logfile = get-logfileName($MyInvocation.MyCommand.Name)
    Log-scriptStart $MyInvocation.MyCommand.Name $logfile
    function Get-WIAStatusValue($value)
    switch -exact ($value)
    0 {"NotStarted"}
    1 {"InProgress"}
    2 {"Succeeded"}
    3 {"SucceededWithErrors"}
    4 {"Failed"}
    5 {"Aborted"}
    function boot-server()
    if ($installOption -eq "TESTINSTALL")
    logger "TESTINSTALL : - Reboot local Server" $logfile
    else
    logger " - Reboot local Server" $logfile
    $thisServer = gwmi win32_operatingsystem
    $thisServer.psbase.Scope.Options.EnablePrivileges = $true
    $thisServer.Reboot()
    $logmsg="Install option = " + $installOption + ", RebootOption = $rebootOption"
    logger "$logmsg" $logfile
    logger "" $logfile
    logger " - Creating WU COM object" $logfile
    $UpdateSession = New-Object -ComObject Microsoft.Update.Session
    $UpdateSearcher = $UpdateSession.CreateUpdateSearcher()
    logger " - Searching for Updates" $logfile
    $SearchResult = $UpdateSearcher.Search("IsAssigned=1 and IsHidden=0 and IsInstalled=0")
    logger " - Found [$($SearchResult.Updates.count)] Updates to Download and install" $logfile
    $Updates=$($SearchResult.Updates.count)
    logger "" $logfile
    foreach($Update in $SearchResult.Updates)
    if ($Update.EulaAccepted -eq 0)
    $Update.AcceptEula()
    # Add Update to Collection
    $UpdatesCollection = New-Object -ComObject Microsoft.Update.UpdateColl
    $UpdatesCollection.Add($Update) | out-null
    if ($installOption -eq "TESTINSTALL")
    else
    # Download
    logger " + Downloading Update $($Update.Title)" $logfile
    $UpdatesDownloader = $UpdateSession.CreateUpdateDownloader()
    $UpdatesDownloader.Updates = $UpdatesCollection
    $DownloadResult = $UpdatesDownloader.Download()
    $Message = " - Download {0}" -f (Get-WIAStatusValue $DownloadResult.ResultCode)
    if ($DownloadResult.ResultCode -eq 4 )
    { $errcnt = 1 }
    logger $message $logfile
    # Install
    logger " - Installing Update" $logfile
    $UpdatesInstaller = $UpdateSession.CreateUpdateInstaller()
    $UpdatesInstaller.Updates = $UpdatesCollection
    $InstallResult = $UpdatesInstaller.Install()
    $Message = " - Install {0}" -f (Get-WIAStatusValue $InstallResult.ResultCode)
    if ($InstallResult.ResultCode -eq 4 )
    { $errcnt = 1 }
    logger $message $logfile
    logger "" $logfile
    #Indien er een fout gebeurde tijdens download/installatie -> stuur mail naar windowsteam
    if ( $errcnt -gt 0 )
    logger " - Fout tijdens de uitvoering van script -> send mail" $logfile
    $mailSubject=$MyInvocation.MyCommand.Name
    $msg = new-object Net.Mail.MailMessage
    $att = new-object Net.Mail.Attachment($logfile)
    $smtp = new-object Net.Mail.SmtpClient($smtpServer)
    $msg.From = $mailFrom
    $msg.To.Add($mailTo)
    $msg.Subject = $mailSubject
    $msg.Body = “Meer details in attachement”
    $msg.Attachments.Add($att)
    $smtp.Send($msg)
    #Moet de server herstart worden ?
    if ($rebootOption -eq "REBOOT_IF_UPDATED" )
    if ($Updates -gt 0)
    #Reboot the server when updates are installed
    boot-server
    elseif ($rebootOption -eq "REBOOT")
    #reboot the server always
    boot-server
    else
    #Do not reboot the server
    logger "Do not reboot the server" $logfile
    Log-scriptEnd $MyInvocation.MyCommand.Name $logfile
    exit 0

  • Looking for help with respect to configuring MS Exchange server to handle attachments over 10 MB for forwarding to Salesforce (Email-to-case).

    Looking for help with respect to configuring MS Exchange server to handle attachments over 10 MB for forwarding to Salesforce (Email-to-case).
    Problem - SFDC does not create cases from emails that have more than 10 MB of attachments. Our clients will not go-live if their clients cannot send in emails with attachments over 10 MBs
    Potential resolution - Configure MS exchange to strip off the attachments(if over 10 MB) and store it in a public folder, forward the email to Salesforce (so the case gets created or the email
    is associated to an existing case), the client should have some way to know if the attachments were stripped off and should be able to dlownload the attachments and continue with case resolution.
    Any help is appreicated!
    Thanks

    Hi,
    From your description, you want to achieve the following goal:
    Configure Exchange to filter the attachments if the size is over 10 MB and store it in a public folder, and then forward the email to Salesforce.
    Based on my knowledge, I'm afraid that it can't be achieved. Exchange can filter messages with attachments, but it couldn't store these attachments on public folder automatically. Also, I don't see any transport rule can do it.
    Hope my clarification is helpful.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Problem with display of files in remote server

    hi,
    i am trying to display to the files on a remote server using JTree. i am able to display local files and directories using JTree but i don't know how to display remote files. can anyone explain how to do it?
    Thank you,
    npaila

    hi,
    i have exactly the same problem.
    Each node of the tree represents a directory. it can be a local or a remote one.
    The only difference is the definition of the File class; the TreeNode class is the same for both.
    Everything works correctly with local Files and fails with remote files.
    Everything means : directory creation, supression, rename, expand all recursive subdirectories.
    I can expand each node, even the ones associated with remote files, with user actions (mouse click, key typed) but I can't expand any node by programing.
    Each action is efficient on the remote server, but the display doesn't change at all.
    Something strange is that when I create a new JTree with a remote file as the root, expand all its recursive subdirectories and then display the Tree, it has correctly expanded.
    Is it a refresh problem ?
    Please help us, give us a clue...
    Thx for advance
    chocodup

  • Help! Downloading a file from remote Server

    I am currently doing a program for downloading a specified file from the remote server i.e from any website. If the downloading process stops in between due to some problem in the internet connection, then my program needs to start the downloading the file again to the local directory from where it was left.
    My idea is that, getting the size of the remote file initially when the downloading process starts and if the connection is interrupted, i will check the size of the downloaded file in the local directory with the remote file size. If the remote file size is greater than the localfile size, i need to start downloading the file where it was left i.e start downloading the next bit from the remote file.
    Is there any way to get the contents of the remote file from the specified point say 50th byte from a total file size of 100 kb using java?
    which concept to use FtpClient or sockets?
    iam a little bit confused!!!!
    Please help me.
    Thanks in advance.

    For HTTP you can use this function to open the stream with offset:
    InputStream openStream(URL url, long offset) {
        try {
            URLConnection uc = url.openConnection();
            uc.setRequestProperty("Authorization", "Basic " + (new BASE64Encoder()).encode("username:password".getBytes()));
            if (offset != 0 && url.openConnection().getHeaderField(0).toUpperCase().startsWith("HTTP/1.1"))
                uc.setRequestProperty("Range", "bytes=" + offset + "-");
            return new BufferedInputStream(uc.getInputStream());              
        } catch (MalformedURLException mfURLe) {
            System.err.println("Malformed URL in Client Updater. Unable to receive update list: " + mfURLe.getMessage());
        } catch (IOException ioe) {
            System.err.println("Unable to open input stream: " + ioe.getMessage());
        return null;
    }

  • Deploying Air Application with Zend AMF Dataservices to remote server?

    I cannot find anything to guide me through getting this set up.. it's frustrating because I feel this is probably the whole point of Air!
    I have an Air project in Flash Builder which is set up with the Data/Services panel, using a custom php model file.
    It's working fine on localhost, but I do not know what is necessary to have it work while the app is running locally but connecting to a remote server (can get it working as a flex app in browser hosted remotely, though)
    I uploaded the Zend framework and my custom php files to the net
    I changed the amf_config.ini file .. the webroot and the zend_path, I assume, should be different depending whether it's localhost or on a server, so I changed the one online to be match where the files are.
    I found in the _super_Database.as it was referencing the Zend gateway.php locally, so I changed that to be an absolute link to where I put gateway.php on the server.
    But I'm not sure what to do next... I assume I only need the Zend framework and the php files I'm using online, but then there is no link to my Database.php anywhere other than as a symbolic link from services/Database.php to the bin-debug folder.. but I don't know how exactly to put that on the server and then compile my app... and I can't find any explanations anywhere.
    Anyone know how to go about this?

    Hello everyone,
    Exact the same problem here. I've build an Air app with PHP in the backend. On my localhost it works fine...  but, when i am tranfer it to the remote server it just won't work.
    I have changed settings in amf_config.ini and in gateway.php, and I have changed the settings in super class of my flash file, so it knows where to find the new gateway.php.
    Can someone please help a hand... (mmm it is almost Christmas .... )
    Thanks., Erik

  • Lanuch Remote Access Management Console with a connection to a remote server

    I've installed the Remote Access Management Console on my Windows 8 workstation so that I can administer DirectAccess on a Windows Server 2012 server without having to connect to it with Remote Desktop. However, every time I launch the console I have to
    click "Manage a remote server" and enter the server name. Is there a way to launch the console with a command-line parameter that opens the remote server automatically?
    I've tried running ramgmtui.exe with the name of the server as a parameter, and I've also tried running "ramgmtui.exe /?" but the console doesn't launch at all when called with any of the parameters I've tried.

    Hi,
    Have you installed Remote Server Administration Tools?
    You may use Server Manager to Manage another server. Once you add a server, it will be listed in All Servers. So you will never have to enter the server name.
    For detailed information, please view the link below,
    Manage Multiple, Remote Servers with Server Manager
    http://technet.microsoft.com/en-us/library/hh831456.aspx
    Hope this helps.
    Steven Lee
    TechNet Community Support

  • Need help with Outlook 2013 connecting to Exchange server(2010)

    Hi
    I need help with Outlook 2013 and with my exchange server(2010) email account
    After setting up account initially emails come in and than after an hour or two stop. My OWA is working fine with no issues. I have even created a forward rule in OWA to my GMAIL account whch works fine
    However Outlook 2013 is not syncing messages, have difficulty in sending emails sometimes as it takes too long.  In fact the connection also is intermittent. Even if the task bar shows connected to exchange, it seems that is not the case since new emails
    and any emails I compose dont work.  I have trouble shot the issue with my ISP and email service provide, but they havent resolved the issue  I have also done a TraceRoute and that shows no drops or problems to he exchange server.
    Can someone please help me resolve this matter so I can continue to use Outlook 2013( running Windows 8.1) in both my computers which have the identical problem
    Look forward to a solution soon
    Thanks

    Hi Angela
    Thanks for your message
    To answer your questions, please note the following
    a) My account is set up in Cache Mode( not online mode)
    b) I am the only other user on the account
    c) When the connection to the exchange server is broken, I see upon clicking connection tab that there is no information in the box, and when I press reconnect it starts showing "connecting"
    d) When the connection to the server is there, it shows  connection as "established"
    e) Sorry I dont understand th meaning of CAS array in your environment?  Can you pls explain
    Since yday I have been using Outlook 2010 on desktop and Outlook 2013 on my laptop using Exchange 2013 account.  So far all emails are syncing, and I can send emails from both computers. However, I am concerned that the connection can break-off anytime,
    as it has done that in the past on both outlook versions.  The max time it has worked without any problem is 48 hrs and than after that the same issue of not connection, not syncing and unable to send emails happens
    My ISP has checked and there is no network connectivity issues. My email service provider has trouble shot the issue many times, but to no positive results.  I have also changed the profile a few times, but the intermittent connectivity problem hasn't
    been resolved.
    Can you identify the possible causes and more importantly a working permanent solution please
    Thanks
    Mahesh

  • I need help with the processes running a media server.

    Hi there!   I need some help with the following log please.  The processes listed I am assuming are the current processes being used from my MacBook Pro to the media server?  Is that correct?  Are these common processes?
    Incident Identifier: EC931B64-E141-4C64-B428-427DF014C7E8
    CrashReporter Key:   b16be41bf16206d8f231e7e71676ab2a9c4dd25e
    Hardware Model:      iPhone4,1
    OS Version:          iPhone OS 5.0.1 (9A405)
    Kernel Version:      Darwin Kernel Version 11.0.0: Tue Nov  1 20:34:16 PDT 2011; root:xnu-1878.4.46~1/RELEASE_ARM_S5L8940X
    Date:                2012-08-24 16:06:18 -0400
    Time since snapshot: 152 ms
    Free pages:        1195
    Wired pages:       88383
    Purgeable pages:   0
    Largest process:   mediaserverd
    Processes
             Name                 UUID                    Count resident pages
                 atc <2271ed33ec773eeb9f381bf1baac9dee>     390
           securityd <e31a714c227a3d1c98ef8aacd44d91ee>     243
             assetsd <281396d3e7d831fbb6a5374157663dbc>    1370
          MobileMail <7064f2baf3f23db987bc8ec99855fe53>    1438 (jettisoned)
            mstreamd <cbe9881735043a389e7cdad3b5bcf5ce>    1099 (jettisoned)
              Camera <88291709452932ac9cbd0f1c06902214>    3105 (active)
         dataaccessd <b4f61f117ee635c48329af8572733d30>    1760
         MobilePhone <fe38c6944a053c9187b41ee50aa151b0>    5549
            networkd <6ee7a78e56073f6e8db4c2cc3265fdb4>     170
          aosnotifyd <58089d732ab43bbea0aec4a6f812f446>     320
            BTServer <e03baab8e0103188979ce54b87591065>     261
          aggregated <68a25a1690cb372096543a46abed14d7>     337
                apsd <e4b6e6e4f31e36f79815747ecbf52907>     291
       fairplayd.N94 <2c0105776e393b39ba95edffaf3bdd17>     294
           fseventsd <78af02202422321885dfc85c24534b0e>     170
                iapd <3ee7f82879033b4fb93b9cf1f4ecae29>     366
             imagent <8e2042f2ec9e3af9ba400f031f1bbfa7>     416
       mDNSResponder <b75f43f012ad3d9ea172d37491994e22>     265
        mediaremoted <b9fa7d1381013c2fa90ea134ff905f59>     258
        mediaserverd <478e5e8345c83be5ba1868906813bb75>    6774
                 ubd <7eaf0b0ca5b83afabecb0dfaa38c7a19>     389
               wifid <e176ab123beb3000bdb89e020612c1d6>     284
           locationd <91c84ab19dd03e4ab1b4cc30178ab1c0>     831
              powerd <25ddef6b52e4385b819e777dd2eeed3c>     167
           lockdownd <a68aa1526ef13a9bb4426bb71ffc1e3c>     250
          CommCenter <51922c9a50e73fe3badccaa4b1b1123b>     781
             syslogd <dd3766bcb1213e91b66283635db09773>     107
         SpringBoard <7506c20d86da3f1dbe9bf38f8bda253d>    5673 (active)
             configd <3430c0025ed13f56800a329b7254d2ae>     418
             notifyd <3793fabace3a385687b3c29c1fa1fcac>     252
      UserEventAgent <6e1cabc1ec6d372c90a6bdeaa7b258fa>     433
             launchd <cc35dd7a872334319ed028e6bbeae081>     133
    **End**
    Thanks a bunch!!!

    COULD NOT OF BEEN BOUGHT BRANDNEW IN 2011** apologies

  • Building Flex application with Flex Builder in a Remote Server - Cloud Computing

    Hey Guys
    I have a query or its confusion probably
    I was just thinking if this kind of solution is existing or possible with say cloud computing or anything else?
    This is what we all probably do for building our flex application?
    1. There is Remote Server hosting our source code
    2. Developer check out the code in their system locally by some Configuration tool like Perforce, CVS etc
    3. Developer Install Flex  Builder IDE locally and open the IDE and then create.build locally and then on testing check in the code in repository
    All this is fine but we have some problem here
    a. We have to get all the source code checked out/downloaded in some local machine
    b. We have to install Flex Builder in each every developer machine with license.
    A possible modification in the above can be as follows
    1. Don't download/check out the source code locally in each machine
    2. Create a mapped network drive of the Remote Repository and then work directly with the mapped network drive
    3. Install Flex Builder  locally
    4. Start Flex Builder create a Flex Project with source code in the mapped network drive
    But this has some potential problem as now the building of the flex application directly work with the mapped network drive. This is very slow especially when we Keep the "Build Automatically" Check box to true
    My question is that can we have a solution like this ?
    1. There is Remote Server hosting our source code
    2. There is another 2nd Remote Server which support workspace for each user
    3. Flex Builder installed in the 2nd Remote Server
    4. Each Developer connects to the 2nd Remote Server log in to their workspace
    5. Each developer check out code by connecting to 1st Remote Server. This code which is checked out now goes in their workspace in the 2nd Remote Server
    6. Start Flex Builder instance which is running in the 2nd Remote Server
    5. Each developer open source code modifies, build application in their workspace and check
    I think this is something that I heard cloud computing can do ? Do anyone have any idea whether this kind of environment is possible in Flex or can anyone suggest something which is almost close to this ?
    Regards
    Biswamit

    Hi
    The concept of cloud computing is not even very clear to me
    I think this is what I understood about it ...........from this link http://communication.howstuffworks.com/cloud-computing.htm
    It says
    "Instead of installing a suite of software for each computer, you'd only have to load one application. That application would allow workers to log into a Web-based service which hosts all the programs the user would need for his or her job. Remote machines owned by another company would run everything from e-mail to word processing to complex data analysis programs. It's called cloud computing, and it could change the entire computer industry"
    "There's a good chance you've already used some form of cloud computing. If you have an e-mail account with a Web-based e-mail service like Hotmail, Yahoo! Mail or Gmail, then you've had some experience with cloud computing. Instead of running an e-mail program on your computer, you log in to a Web e-mail account remotely"
    My issue is not with the license. The solution that I am looking for is
    1. Don't want the developer to download the source code in any fashion either checked out or anything else in the local machine
    2. Want the developer to work directly on the server
    3. Looking for a solution where each developer is not required to install Flex Builder locally and the developer can use Flex Builder that is installed on the server and in his workspace and create/modify build on the server itself
    Hope I could make you understand this time ................
    Regards
    Biswamit

  • [SOLVED] Help with systemd .service script

    Hello,
    I have been using ArchLinux (ARM version) on some “plug computers” for over a year and love it.  Recently I forced myself to move to systemd by upgrading all my computers from scratch.  I migrated all my applications and learned new ways of doing things but am having trouble with one last migration.  I run a c++ communication program that monitors a TCP port for traffic.  In the past I started this program (daemon) from an entry in rc.conf.  I have read all I can about systemd’s new approach to starting daemons (https://wiki.archlinux.org/index.php/Systemd and https://wiki.archlinux.org/index.php/Systemd/Services)
    So far I created what I thought is the correct systemd .service file listed below.
    [Unit]
    Description=EQBCS
    After=network.target
    [Service]
    Type=simple
    ExecStart=/home/public/EQBCS/eqbcs -p 12947 -d &> /dev/null
    [Install]
    WantedBy=multi-user.target
    I put this file in /usr/lib/systemd/system/eqbcs.service.  I then ran the following commands in the following order:
    systemctl daemon-reload
    systemctl enable eqbcs.service (created a link in /etc/systemd/system/multi-user.target.wants)
    systemctl start eqbcs.service
    Here is output from systemctl (status)
    eqbcs.service                                 loaded failed failed    EQBCS
    I thought this would start the service but no luck.  I also thought maybe a reboot would work but no luck.  I verified I can start the daemon manually if I run /home/public/EQBCS/eqbcs -p 12947 -d &> /dev/null from the command line.
    I think I am close, but after several hours of looking at examples of .service files and other posts, I am at a loss.  I am not one of those types who posts a question without taking the time to read the wealth of information on these boards, but I am truly out of ideas and can’t figure out what to do next.  I sincerely could use some help/advice.
    Last edited by calzon65 (2013-06-01 21:18:20)

    Thank you for the suggestions, I believe I am getting closer to success. When I run systemctl start eqbcs.servcie it starts the service but the only way I can get out of systemctl is to ^c out.
    Here is my current .service file:
    [Unit]
    Description=EQBCS
    After=network.target
    [Service]
    ExecStart=/home/public/EQBCS/eqbcs -p 12947
    Type=forking
    [Install]
    WantedBy=multi-user.target
    Output from systemctl status eqbcs:
    eqbcs.service - EQBCS
       Loaded: loaded (/etc/systemd/system/eqbcs.service; enabled)
       Active: failed (Result: timeout) since Sat 2013-06-01 12:48:43 PDT; 2min 11s ago
      Process: 427 ExecStart=/home/public/EQBCS/eqbcs -p 12947 (code=killed, signal=TERM)
    Main PID: 396 (code=killed, signal=KILL)
       CGroup: name=systemd:/system/eqbcs.service
    Jun 01 12:47:13 alarm systemd[1]: Starting EQBCS...
    Jun 01 12:47:13 alarm eqbcs[427]: WARNING: Running as root NOT recommended.
    Jun 01 12:47:13 alarm eqbcs[427]: EQ Box Chat Server 10.12.18
    Jun 01 12:47:13 alarm eqbcs[427]: Waiting for connections on port: 12947...
    Jun 01 12:48:43 alarm systemd[1]: eqbcs.service operation timed out. Terminating.
    Jun 01 12:48:43 alarm systemd[1]: Failed to start EQBCS.
    Jun 01 12:48:43 alarm systemd[1]: Unit eqbcs.service entered failed state.
    Are there any other suggestions for settings in my .service file?

  • [SOLVED] Problem with acpid and systemd-logind

    Hi, I have the following problem: I want set an action, when power button is pushed, different from shutdown and I want do this with a rule in acpid. Before set a rule in acpid, I modified the /etc/systemd/logind.conf in the following way:
    HandlePowerKey=ignore
    HandleSuspendKey=ignore
    HandleHibernateKey=ignore
    HandleLidSwitch=ignore
    Of course I restart systemd-logind service.
    After this, I run #acpi_listen and when I press the power button, the output is the following:
    button/power PBTN 00000080 00000000
    button/power LNXPWRBN:00 00000080 00000008
    So at this point, with reference to arch wiki, I tried to set the acpid rule with a modify the /etc/acpi/handler.sh in this way:
    #!/bin/bash
    # Default acpi script that takes an entry for all actions
    case "$1" in
    button/power)
    case "$2" in
    PBTN)
    notify-send "this is a test message"
    logger 'Power button pressed'
    esac
    esac
    Because with this setting doesn't happens nothing, I tried the alternative configuration suggested in the arch wiki, So I create a file in /etc/acpi/events/power with this content:
    event=button/power
    action=/etc/acpi/actions/power.sh "%e"
    where power.sh has this content:
    #!/bin/bash
    notify-send "this is a test message"
    but also in the way when I push the power button doesn't happens nothing. Can you help me?
    P.S. I try to restart both service systemd-logind and acpid but the result is the same
    Last edited by pepib (2015-03-09 12:07:27)

    In the handler.sh script I put the getuser function and I modified the handler.sh as following:
    case "$1" in
    button/power)
    case "$2" in
    PBTN)
    getuser notify-send "this is a test message"
    but it continued to doesn't working. So at this point at place of getuser function I tried to put the
    export XAUTHORITY="/home/user/.Xauthority"
    export DISPLAY=":0.0"
    but it doesn't working. Fortunately, at the end I find this possible solution http://goo.gl/Lq4TsY that use uacpid. What was the problem? Where I wrong?

  • [Solved]Help with printer

    Hi!
    I`m really frustrated... I never thought that installing printer can be such a paint in the rear...
    Ok, now back to the point:
    I`m trying to set up my Deskjet 930c on 32 bit Arch through usb. I did everything that Wiki says: installed
    cups ghostscript gsfonts hplip and net-snmp
    I loaded the module
    modprobe usblp
    and i see the  that the printer is connected alright
    [andy@andy ~]$ dmesg
    usb 6-1: new full speed USB device using uhci_hcd and address 3
    usb 6-1: configuration #1 chosen from 1 choice
    usblp1: USB Bidirectional printer dev 3 if 0 alt 1 proto 2 vid 0x03F0 pid 0x1204
    I added the cups and usblp to rc.conf to make sure it is being loaded on startup. I rebooted, and then opened http://localhost:631 in firefox. It allows me to setup the printer, but when it comes to printing the test page, adding users or removing printers i get a Firefox message:
    Port Restricted for Security Reasons
    This address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection.
    The requested address specified a port (e.g. "mozilla.org:80" for port 80 on mozilla.org) normally used for purposes other than Web browsing. The browser has canceled the request for your protection and security.
    When i run gnome-cups-manager i see an error in terminal:
    ** (gnome-cups-manager:13143): WARNING **: IPP request failed with status 1030
    , and when trying to print a test page i get an error:
    Ready: /usr/lib/cups/filter/foomatic-rip-hplip failed
    So i`ve ran
    hp-setup
    and setup my printer. I can than print a test page.
    But when it comes to printing by a usual user, the "print" button in all applications is grayed out/inactive.
    Also hp-toolbox is segfaulting all the time...
    Also, running a system-config-printer says:
    There was an error during the CUPS operation: 'server-error-service-unavailable'.
    The funny thing is... The only way to print something is to print it to a .pdf file first, and than printing that file.
    Any help, please?...
    Last edited by K0tuk (2009-05-02 11:19:12)

    skottish wrote:
    Do you mean this message screen?
    http://bbs.archlinux.org/viewtopic.php?id=70775
    If that thread doesn't solve your problem, then there are a bunch more CUPS threads that are less than two weeks old that will.
    omg! huge thanks, that completely solved my problem... i wasn`t actually concentrating on the firefox error, more on the cups errors that followed... thanks again!

  • Help with Conversion Script

    I have written a program for the hosting company I work with
    to provide users with statistical information. It works great for
    clients using coldfusion. Thats who we have the most of anyway.
    However clients using any other language it does not work for. I
    was wondering if there is some javascript I could use so when
    someone clicks the link I provided and they go thru cflocation to
    the end users website if I could send about three variables in
    javascript that would follow the user thruout the site and then if
    the person reaches a conversion goal I can call on a coldfusion
    page to update my database?
    Did I just make any sense whatsoever?

    Would putting your conversion program into a cfc so it's
    available as a web service help?

  • [SOLVED] Help with dual monitors (second monitor won't wake up)

    Hi.  I'm trying to set up dual monitors, but I can't seem to get it to work. 
    I've got an ASUS P8H67-M EVO motherboard, and I'm using the xf86-video-intel driver.  I'm using one VGA and one HDMI.
    xrandr gives this
    xrandr
    Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 32767 x 32767
    VGA1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 296mm
    1680x1050 60.0*+ 74.9
    1600x1000 60.0
    1280x1024 75.0 72.0 60.0
    1440x900 75.0 59.9
    1152x864 75.0
    1024x768 75.1 70.1 60.0
    800x600 72.2 75.0 60.3
    640x480 72.8 75.0 66.7 60.0
    720x400 70.1
    HDMI1 disconnected (normal left inverted right x axis y axis)
    DP1 disconnected (normal left inverted right x axis y axis)
    HDMI2 disconnected (normal left inverted right x axis y axis)
    HDMI3 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
    1920x1080 60.0*+ 50.0 60.0
    1920x1080i 50.0 60.1
    1680x1050 59.9
    1600x900 60.0
    1280x1024 75.0 60.0
    1280x960 60.0
    1152x864 75.0
    1280x720 50.0 60.0
    1152x720 60.0
    1440x576i 50.1
    1024x768 75.1 60.0
    1440x480i 60.1
    832x624 74.6
    800x600 75.0 60.3
    720x576 50.0
    720x480 59.9
    640x480 75.0 60.0 59.9
    720x400 70.1
    DP2 disconnected (normal left inverted right x axis y axis)
    DP3 disconnected (normal left inverted right x axis y axis)
    So it looks to me like both displays are being detected.  The geometry looks such that one display is on top of the other, but I can change that using an xorg.conf.d config file (e.g. https://wiki.archlinux.org/index.php/Mu … xorg.conf).  I also tried using arandr.
    The real problem is that the display on HDMI3 just isn't "waking up".  The power is on, but it just sits there in sleep mode.
    Any help would be great.  I might just be missing something simple.  Thanks.
    Edit:  I just saw a short list of window managers near the bottom of the Arch Multihead page (https://wiki.archlinux.org/index.php/Mu … _xorg.conf).  I don't see openbox on that list.  Does that mean I'm SOL if I want to use openbox with multiple monitors?  This page seems to imply that it should work fine with openbox http://magnatecha.com/dual-monitors-wit … nd-xrandr/.
    Last edited by Pacopag (2013-08-19 18:58:36)

    I use XFCE, and when I boot my computer I just run:
    xrandr --output DVI-I-1 --auto --output DVI-I-2 --auto --left-of DVI-I-1
    I'm assuming if you modify the names appropriately that it'll work too.  I have had issues before trying to run dual monitors without taking both outputs off of a single video card (which is what I'm doing now).  For example, I had a graphics card with one (VGA) output and a VGA output on my motherboard.  But, connecting the graphics card disabled the on-board VGA.  So it is possible (I'm not an expert here) that two displays coming off the motherboard may not work for hardware reasons.

Maybe you are looking for