• systemd. IDS Start-Stop script

    From zaiets@gmail.com@21:1/5 to All on Fri Dec 1 02:41:31 2017
    Hello!

    I have problem on linux (CentOS 7) with stopping IDS when IDS started not as service.

    Start IDS (oninit)

    online.log:
    ...
    12:21:52 On-Line Mode
    ...
    12:21:54 SCHAPI: Started 2 dbWorker threads.

    reboot OS (reboot)
    online.log:
    12:22:17 stack trace for pid 2699 written to /usr/informix/12.10fc9/tmp/af.12d58
    12:22:17 stack trace for pid 2705 written to /usr/informix/12.10fc9/tmp/af.72d58
    ...
    12:22:17 Checkpoint Completed: duration was 0 seconds.
    12:22:17 Fri Dec 1 - loguniq 21, logpos 0x70a018, timestamp: 0x11dd15 Interval: 922

    12:22:17 Maximum server connections 0
    12:22:17 Checkpoint Statistics - Avg. Txn Block Time 0.000, # Txns blocked 0, Plog used 8, Llog used 23

    12:22:18 IBM Informix Dynamic Server Stopped.

    12:22:54 IBM Informix Dynamic Server Started.



    When start IDS as
    systemctl start informix-server
    Then in online.log without error " stack trace for pid...."


    My start-stop configuration file:
    # ------------------------------------------------------------------
    # Informix Start-Stop script
    # /usr/lib/systemd/system/informix-server.service
    # systemctl enable informix-server.service
    # ------------------------------------------------------------------

    [Unit]
    Description=Informix IDS Database Server Documentation=file:/opt/IBM/informix/release/en_us/0333 http://www.ibm.com/software/data/informix/library.html
    Wants=network-online.target
    After=network.target network-online.target

    [Service]
    Type=oneshot
    User=informix
    Group=informix
    RemainAfterExit=yes
    Environment="IDSPROFILE=/etc/informix/server"
    ExecStart=/bin/sh -a -c 'source $IDSPROFILE && $INFORMIXDIR/bin/oninit' ExecStop=/bin/sh -a -c 'source $IDSPROFILE && $INFORMIXDIR/bin/onmode -ky' #Restart=on-abort

    [Install]
    WantedBy=multi-user.target


    How fix errors "stack trace for pid" when stopping OS and IDS started not as service?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)