SCALE Init scripts are not executed

Description

I have a simple test script that echos to a file:

#!/bin/bash

echo "$(date) Test String" >> /mnt/NVME_512/Incoming/test.log

This script has been chmod +x, and runs as expected when executed directly.

Setting it in the Init Script section of the webpage does not run it on reboot.

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug Clerk April 1, 2021 at 6:39 AM

Chris Griffith March 31, 2021 at 9:40 PM

goldfinger# cat test.log Wed Mar 31 16:15:36 CDT 2021 Test String goldfinger# rm test.log goldfinger# systemctl start ix-preinit goldfinger# cat test.log cat: test.log: No such file or directory

Nothing. `boot.svg` attached 

(assuming you meant `systemd-analyze plot > ~/boot.svg` )

Waqar Ahmed March 31, 2021 at 9:21 PM

Interesting. Can you delete the log file and execute the following command and see if you see it ?

systemctl start ix-preinit

And also can you please share the file boot.svg generated from this command ?

systemd-analyze > boot.svg

Chris Griffith March 31, 2021 at 9:17 PM

goldfinger# midclt call -job initshutdownscript.execute_init_tasks PREINIT Status: Completed tasks for PREINIT Total Progress: [########################################] 100.00% null

Looks this that does create the file as expected

goldfinger# ls -l /mnt/NVME_512/Incoming/ total 157 ... -rw-r--r-- 1 root root 41 Mar 31 16:15 test.log -rwxr-xr-x 1 root root 76 Mar 22 19:15 test_echo.sh
goldfinger# cat test.log Wed Mar 31 16:15:36 CDT 2021 Test String

Waqar Ahmed March 31, 2021 at 9:13 PM

if you execute following command do you see the test file then ?

midclt call -job initshutdownscript.execute_init_tasks PREINIT

And if not, can you share output of following command please ?

ls -l /mnt/NVME_512/Incoming/
Complete
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Impact

Medium

Components

Affects versions

Priority

More fields

Katalon Platform

Created March 23, 2021 at 12:47 AM
Updated July 1, 2022 at 5:12 PM
Resolved April 1, 2021 at 2:17 PM